Ubuntu – Create Webmin user for an EC2 Instance

amazon ec2amazon-amiUbuntuubuntu-12.04

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?

Best Answer

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.