This script is for setting up a new user on a remote Virtual Private Server.
VPS’s will give you a root login and password (i.e. Rackspace Cloud or Amazon EC2) and this script will get you setup with an admin user that is a sudoer while also disabling root and password based logins.
Targeted for Ubuntu (apt-get) and tested on 10.04 on Rackspace Cloud.
Any feedback / comments are appreciated.
- Notes and TODO:
- apt-get update / upgrade are run automatically. Needs to be (Y/N) choice.
- Need support for transferring or creating a .pem to keep constant with default EC2 login