Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've setup an Amazon EC2 Instance, using the Ubuntu 12.04 AMI (ubuntu/images/ebs/ubuntu-precise-12.04-amd64-server-20120424 (ami-a29943cb)), and I'd like to get Webmin working (so I can setup a DNS).

After following the installation instructions on Webmin's site, the installer says I can login with any username/pass of a user who has superuser access.

The problem is that the EC2 instance only has 1 user "ubuntu", which can only login using SSH keys -- not a password!

I've tried creating users manually and I can't login as those users (even via SSH), so I think it might be a permission thing provided by the AMI.

Does anyone know the best way around setting up a login to my webmin?

share|improve this question
up vote 1 down vote accepted

Andrew Smith is correct, but has an unnecessary step in his suggestion. You don't actually need to login to ssh with a password for Webmin to work; ssh and Webmin are unrelated services. Simply set a password for your root, or sudo ALL capable user, and that will be the way you login to Webmin.

share|improve this answer
Just adding a password to the root account worked, I could then login via the url. – Dean Rather Jun 25 '12 at 3:14

Setup password for root with "passwd root" and login as it over SSL. If you want to host website you might try virtualmin.

share|improve this answer

Create a simple user with password having sudo permissions as shown below. You can login to webmin using this user.

sudo useradd -g sudo webmin
sudo passwd webmin

Make sure you choose a strong password as this is the sudo user. Refer here for details.

share|improve this answer

Ok, so the reason you can't log in to the instance with anything other than a key is probably the sshd_config has PasswordAuthentication no

Change that to yes.

Then create a user and a password for that user and it might work.

share|improve this answer
This is not necessary. SSH authentication is not, in any way, related to Webmin authentication. Both use PAM on the backend, but the sshd configuration does not apply to Webmin authentication. – swelljoe Jun 24 '12 at 0:40

Your Answer


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.