
So logon to the server via ssh and sudo as root user.
If you execute the script the following out is displayed.
[root@livrona webmin]# /usr/libexec/webmin/changepass.pl usage: changepass.pl This program allows you to change the password of a user in the Webmin password file. For example, to change the password of the admin user to foo, you would run: changepass.pl /etc/webmin admin foo This assumes that /etc/webmin is the Webmin configuration directory. |
[root@livrona webmin]# /usr/libexec/webmin/changepass.pl /etc/webmin root changeme Updated password of Webmin user root [root@livrona webmin]# exit exit -sh-3.1$ |
If the given user does not exist in webmin, it would say that the user does not exist and list out all the users in the webmin system.
[root@livrona webmin]# /usr/libexec/webmin/changepass.pl /etc/webmin admin password
The Webmin user admin does not exist
The users on your system are: root
No comments:
Post a Comment