In this recipe, we will look at some best practices to secure Ubuntu systems. Linux is considered to be a well secured operating system. It is quite easy to maintain the security and protect our systems from unauthorized access by following a few simple norms or rules.
You will need access to a root or account with sudo
privileges. These steps are intended for a new server setup. You can apply them selectively for the servers already in productions.
Follow these steps to discuss Ubuntu security best practices:
Install updates from the Ubuntu repository. You can install all the available updates or just select security updates, depending on your choice and requirement:
$ sudo apt-get update $ sudo apt-get upgrade
Change the root password; set a strong and complex root password and note it down somewhere. You are not going to use it every day:
$ sudo passwd
Add a new user account and set a strong password for it. You can skip...