I'm trying to build some scripts to set up user accounts and roles on a server but am running into an issue with the pveum command. Specifically editing a password with pveum passwd user@pve password, for example, I'm met with an error that reads:
"REST environment not initialized at /usr/share/perl5/PVE/RESTEnvironment.pm line 163, <DATA> line 751."
Following the error the password fails to be set. I am however able to set the password through the web UI. I looked through the perl module but don't understand enough to make sense of it. If anyone's experienced this error I'd love to know how to resolve it.
Here is the output of pveversion, if it helps: pve-manager/4.4-22/2728f613 (running kernel: 4.4.114-1-pve)
"REST environment not initialized at /usr/share/perl5/PVE/RESTEnvironment.pm line 163, <DATA> line 751."
Following the error the password fails to be set. I am however able to set the password through the web UI. I looked through the perl module but don't understand enough to make sense of it. If anyone's experienced this error I'd love to know how to resolve it.
Here is the output of pveversion, if it helps: pve-manager/4.4-22/2728f613 (running kernel: 4.4.114-1-pve)