WebminWithoutARootAccount
Revision 3 as of 2006-02-10 03:49:51
Clear message
Introduction
- If you install Webmin, and have still have Ubuntu root password disabled, the initial installation of Webmin won't work, as it creates the disabled root login too. To fix this, you need to manually change root password.
Steps
After you perform apt-get install webmin, you have to do the following:
- get your encrypted password from /etc/shadow.
attachment:IconsPage/IconExample48.png
For example, the following command will output the password to the screen:
sudo grep your_username /etc/shadow |cut -f2 -d:
- next we edit this file:
sudo gedit /etc/webmin/miniserv.users
you will need superuser rights to save it
replace the asterisk in the first line with the password you aquired from /etc/shadow, so that the line looks something like this:
root:$1$e/9mjoasd$asdasljjwynSD42
Save the file and exit the editor after that.
- restart webmin with this command:
sudo /etc/init.d/webmin restart
After that, you can go to https://localhost:10000/ in your web browser and login using root as the username and the password of your non-root user.