How to enable root login? in ubuntu
Posted by Hemprasad Y. Badgujar on December 11, 2013
Here you go:
sudo passwd root sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'
Root won’t show up as a user, but “Login” will, which is how you manually log in with users not shown in the greeter.
Rebooted and then you should be able to login as root.
While it’s possible to do, it is not recommended.
To actually enable root logins, just do a
sudo passwd -u root. This will prompt for a new root password and once you confirm it, you can start using the root account to login.
If you want to disable root account in Ubuntu you need to lock the root account by using the following command
sudo passwd -l root
Alternatives to root login
If you want to work on a root console you can also use
Only do this if you know what you are doing. More information on why to stay with sudo here
Graphical version needs setting up 1st:
pkexec gnome-terminal will open a terminal with a root prompt.
passwd root will allow you to create a password for root.
Note: Running users-admin with elevated privileges no longer works because of a bug that is marked as “Won’t Fix” for security reasons. See https://bugs.launchpad.net/ubuntu/+source/gnome-system-tools/+bug/685215 for an explanation.
pkexec users-admin will open the users screen:
This entry was posted on December 11, 2013 at 5:43 PM and is filed under Linux OS, Linux OS, Mixed, 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.