Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I connect to webmin when I do not know the root password.

I have a sudo account that can become root

share|improve this question
add comment

2 Answers

If Webmin is actually using the root password as stored in /etc/shadow, then you can sudo to root and change root's password. But if Webmin has it's own password store, and it's password just happens to be identical to the root's password, then changing root's password won't help, and you'll need to get the Webmin password from someone who knows it.

share|improve this answer
add comment

Webmin can also be configured to allow users who have sudo privileges for all actions to login as a root-level user.

  1. Browse to Webmin->Webmin Users
  2. Enable the option "Allow users who can run all commands via sudo to login as root"
  3. Save it

Now you should be able to login as any user that has ALL sudo privileges. This feature was added to accommodate systems like Ubuntu that do away with having a "root" account, by default (Ubuntu has a root account, but it has no password and the first user created gets added to the sudoers file automatically).

This option is enabled, by default, on systems that we know meet this description (like recent Ubuntu releases), I think.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.