Ubuntu 12.04 root user login

By default, ubuntu12.04 does not allow root login, and only ordinary users and guest logins can be seen in the login window.
After landing Ubuntu ordinary identity we need to make some changes, the ordinary user login, to modify the system configuration file
that you need to switch to super user mode, enter in a terminal window inside:. Sudo -s Then enter the normal user
login password, enter namely You can enter the root user authority mode.

Then execute: vi /etc/lightdm/lightdm.conf.
Increase

greeter-show-manual-login=true  
allow-guest=false  

The modified configuration file is

[SeatDefaults]

greeter-session=unity-greeter

user-session=ubuntu

greeter-show-manual-login=true #手工输入登陆系统的用户名和密码

allow-guest=false   #不允许guest登录

Then we start the root account:
sudo passwd root
Enter the roott account password according to the prompt.

Restart ubuntu, the login window will have a "login" option, at this time we can log in through root.

Guess you like

Origin blog.csdn.net/amwha/article/details/77140964