Create Webmin user for an EC2 Instance

5,196

Solution 1

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.

Solution 2

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

Solution 3

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:
5,196

Related videos on Youtube

Dean Rather
Author by

Dean Rather

"Professionally" I do PHP, but in my spare time I tinker in C++/Java etc. Playing with Node a little lately.

Updated on September 18, 2022

Comments

  • Dean Rather
    Dean Rather almost 2 years

    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?

  • Dean Rather
    Dean Rather about 12 years
    Just adding a password to the root account worked, I could then login via the url.