Thursday 11 April 2013

How to Enable and Disable Root Login in Ubuntu 12.04 TLS

We have recently installed Ubuntu 12.10 Desktop and Ubuntu 12.10 Server, we have nowhere asked to supply root password during installation. Generally in Linux, root user does exist and we need to supply root password during installation. By default root account is disabled in Ubuntu Linux because of security reason and you cannot login as root user directly or su - (Switch User) to become a root. You need to add sudo (superuser do) before actual command if you want to run all administrative commands and you need to supply your password when prompts for password.


Sudo is allowed user to become superuser for temporary to run superuser administrative tasks.
During installation only allow to create new user which has no root ( aka super user) privileges. But same user is allowed to execute sudo commands. Configuring sudo access for users, need to configure /etc/sudoers.
We’ll be covering the usage of SUDO and also we are going to show you tips & tricks to become root user.