KB 565005 - Enable Root Login in GUI Lock Screen in Ubuntu.
How to Enable Root Login in Ubuntu in Login Screen.
Do you have Trouble to Login as root user in Ubuntu like this?
Steps to Enable Root Login
- Login as other user as you Define in Installation time.
- Open the Terminal, shortcut to open Terminal ctrl+atl+t.
- Use Following commands.
sudo su -
- Provide the credentials.
vim /etc/gdm3/custom.conf
- Add a new line-> Allowroot=True
- Press i for edit.
- Press "esc" then type ":wq". (ecp->exit from Edit mode, w->Save, q-> Exit)
vim /etc/pam.d/gdm-password
- comment second line ( use hash "#" before line).
- Press i for edit.
- Press "esc" then type ":wq". (ecp->exit from Edit mode, w->Save, q-> Exit)
passwd root
- Set new password for root.
- Go to the Login Screen and Login as root user, now you must be login as root.