Posted 2010-08-23 13:46 by Joe

passwd-system.pl

passwd-system.pl

Changes the SSH and/or Webmin password on some system

This command can be used to change the root password for SSH or Webmin on a managed system. The Unix password can be set with the --ssh-pass parameter, while the Webmin password can be changed with --webmin-pass. To configure Webmin to check the Unix password when root logs, use the --webmin-same parameter.

When the command is run, it will update /etc/shadow and /etc/webmin/miniserv.users on the selected machine to make the changes. Cloudmin's authentication information for the system will also be updated to match.

Alternately, you can configure the system to accept root logins via an SSH key setup in Cloudmin with the --ssh-key flag, followed by a key ID. Registered keys can be fetched from the list-ssh-keys API command. This will update the /root/.ssh/authorized_keys file on the virtual system.

If you have created a virtual system for a customer, changing the root password when you are ready to hand it over is a good idea. Be aware that for Xen systems, if the password is changed on the system directly (perhaps using the passwd command), Cloudmin will be no longer able to login via SSH to change it, or even to check the system's status.

Command Line Help

cloudmin passwd-systems --host name
                       [--ssh-pass password | --ssh-key id]
                       [--webmin-pass password | --webmin-same]