Login as Root in Ubuntu 12.04 (Precise Pangolin)
Posted by Hemprasad Y. Badgujar on December 24, 2013
The root account is also known as the administrator account. Think of the root account as an account with god-like rights. It can delete any file, any folder and make any change to the system. The power of the root account is limitless.
Because the root account is so powerful, it is automatically created with a password value with no possible encrypted match on the system, which makes it unusable to sign on with. So instead of directly logging on with the root account, users are encouraged to use the sudo command.
The sudo command allows authorized users to temporary elevate their privileges using their own password without knowing the root password or using the root account.
If you still want to enable and logon with the root account for other unknown reasons, simply give it a password. This will enable the root account.
The commands above will enable the root account but to sign on as the root user, you must enable manual logon since it’s now been disabled in Ubuntu. The manual logon option allows for users to type their logon name as well as the password for the account instead of just selecting an account from the logon screen.
To enable manual logon with Ubuntu 13.10, open the config file by running the commands below
sudo gedit /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf
Then add the line below as shown in the image.
Save the file and restart your computer.
For earlier versions of Ubuntu, you may find this config file in a different location under /etc/lightdm. It may be called lightdm.conf.
On the logon screen, you can then type the root username with password to sign on.
If you want to lock / disable the root account, run the commands below.
sudo passwd -l root
This entry was posted on December 24, 2013 at 1:47 PM and is filed under Computer Network & Security, Computing Technology, CUDA, Entertainment, Journals & Conferences, Linux OS, Operating Systems, UNIX OS. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.