Home » Linux OS and Software » How-To » Post Install Suggestions for Ubuntu VPS
Thu, 13 November 2008 21:51 Go to next message
Registered: November 2008
Messages: 18
Here are a few things you may want to consider doing after your Ubuntu VPS is installed:


  1. Create a non-root user account to use for non-administrative tasks.

    # adduser yourNonRootUsername


  2. Add your new non-root user to the sudoer's list so he or she can use the sudo command to perform administrative tasks when necessary.

    # visudo

    Add a line like the following:
    yourNonRootUsername ALL=(ALL) ALL


  3. "Lock" the root account by setting a random password for root. (This may seem silly for those not accustomed to working with Ubuntu but it makes me feel at home Smile ).

    # passwd -l root


  4. Disable root login via ssh for additional security.

    Edit the file /etc/ssh/sshd_config and set PermitRootLogin to no.


And you should definitely check out the topic on installing a firewall script by the VPS Ville staff. You may also be interested in this Ubuntu Geek blog about setting up lighttpd, php5 and MySQL.
Fri, 14 November 2008 11:47 Go to previous messageGo to next message
Registered: November 2008
Messages: 18
After performing the above steps, I found that locking the root account caused it to expire! Not good...

You can set your root account to never expire with the following command:
$ sudo chage -E never root
Fri, 14 November 2008 11:50 Go to previous messageGo to next message
Registered: November 2008
Messages: 18
I almost forgot, you may want to enable automatic security updates. To do so, just install the unattended-upgrades package:
$ sudo apt-get install unattended-upgrades
Fri, 14 November 2008 13:34 Go to previous messageGo to next message
Registered: November 2008
Messages: 18
Finally, check out the backup-manager package. I found it to be the ideal solution for backing up my VPS.
Sat, 15 November 2008 20:40 Go to previous messageGo to next message
Registered: November 2008
Messages: 18
I just realized that cron doesn't come installed with the minimal Ubuntu OS. You'll probably want that, especially if you're using the backup solution presented above.

$ sudo apt-get install cron
Thu, 03 September 2009 16:05 Go to previous message
Registered: September 2009
Messages: 2
I've noticed that ubuntu 8.10 has wrong mode for /dev/null on install... should be 666:

sudo chmod 666 /dev/null
Previous Topic:Mail server Postfix
Next Topic:How to install/configure virtualbox
Goto Forum:
  


Current Time: Sun Dec 17 12:23:10 EST 2017
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2006 FUD Forum Bulletin Board Software