Ubuntu19.10 add the root account

0x01 root privileges to open the console and create a password for the root account

 

sudi -i
passwd root

 

 

0x02 modify the configuration file

 

 Open /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf, add a "greeter-show-manual-login = true" and "all-guest = false" in the configuration file

gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

 

Edit /etc/pam.d/gdm-autologin, the third line comment "auth required pam_succeed_if.so user! = Root quiet_success"

gedit /etc/pam.d/gdm-autologin

 

Edit gedit /etc/pam.d/gdm-password, the third line comment "auth required pam_succeed_if.so user! = Root quiet_success"

gedit /etc/pam.d/gdm-password

 

Edit gedit /root/.profile

gedit /root/.profile

 

Restart the computer to log in with the root account

 

Guess you like

Origin www.cnblogs.com/zhaoritian12138/p/12365611.html