Hi all, i`m currently working through our templates updating and adding new ones. I`m currently working on Centos Stream 8. I have followed the guide here <http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/4.8/templates/_password.html#adding-password-management-to-templates> .
However, I have an issue, once I click the password reset in Cloudstack the UI gives me a new one, however its not changed under the VM. Checking the logs on the VM I see: [root@centos-8-stream-whhji ~]# cat /var/log/messages | grep 'password' Jan 23 14:22:42 centos-8-stream-whhji cloud-set-guest-password[843]: Error: NetworkManager is not running. Jan 23 14:22:42 centos-8-stream-whhji cloud[861]: Unable to determine the password server, falling back to data-server Jan 23 14:22:42 centos-8-stream-whhji cloud[865]: Sending request to password server at data-server Jan 23 14:22:42 centos-8-stream-whhji cloud[880]: Failed to send request to password server at data-server Jan 23 14:22:42 centos-8-stream-whhji cloud[881]: Did not need to change password. Jan 23 14:25:45 centos-8-stream-whhji cloud[1458]: Found password server IP 192.168.3.1 in nmcli output Jan 23 14:25:45 centos-8-stream-whhji cloud[1460]: Sending request to password server at 192.168.3.1 Jan 23 14:25:45 centos-8-stream-whhji cloud[1493]: VM got a valid password from server at 192.168.3.1 Jan 23 14:25:45 centos-8-stream-whhji cloud[1495]: Changing password for user root Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1497]: /etc/rc.d/init.d/cloud-set-guest-password: line 129: /usr/sbin/chpasswd: Permission denied Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1500]: /etc/rc.d/init.d/cloud-set-guest-password: line 132: mkpasswd: command not found Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: Usage: usermod [options] LOGIN Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: Options: Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -c, --comment COMMENT new value of the GECOS field Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -d, --home HOME_DIR new home directory for the user account Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -f, --inactive INACTIVE set password inactive after expiration Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: to INACTIVE Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -g, --gid GROUP force use GROUP as new primary group Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -G, --groups GROUPS new list of supplementary GROUPS Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -a, --append append the user to the supplemental GROUPS Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: mentioned by the -G option without removing Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: the user from other groups Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -h, --help display this help message and exit Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -l, --login NEW_LOGIN new value of the login name Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -L, --lock lock the user account Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -m, --move-home move contents of the home directory to the Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: new location (use only with -d) Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -o, --non-unique allow using duplicate (non-unique) UID Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -p, --password PASSWORD use encrypted password for the new password Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -R, --root CHROOT_DIR directory to chroot into Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -P, --prefix PREFIX_DIR prefix directory where are located the /etc/* files Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -s, --shell SHELL new login shell for the user account Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -u, --uid UID new UID for the user account Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -U, --unlock unlock the user account Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -v, --add-subuids FIRST-LAST add range of subordinate uids Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -V, --del-subuids FIRST-LAST remove range of subordinate uids Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -w, --add-subgids FIRST-LAST add range of subordinate gids Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -W, --del-subgids FIRST-LAST remove range of subordinate gids Jan 23 14:25:45 centos-8-stream-whhji cloud-set-guest-password[1503]: -Z, --selinux-user SEUSER new SELinux user mapping for the user account Jan 23 14:25:45 centos-8-stream-whhji cloud[1511]: Failed to change password for user root Jan 23 14:25:45 centos-8-stream-whhji systemd[1]: cloud-set-guest-password.service: Control process exited, code=exited status=1 Jan 23 14:25:45 centos-8-stream-whhji systemd[1]: cloud-set-guest-password.service: Failed with result 'exit-code'. The mkpasswd error I have fixed by making sure its actually installed. but, i`m still getting the Permission denied error on /usr/sbin/chpasswd. I have temporarily given full permissions to the sbin folder and if I run the script manually it runs without issue. I am running out of ideas on what to try. Can anyone suggest anything I can try? Thanks