Ubuntu 19.04 installation Basic Operation

Ubuntu 19.04 using the root login screen

Similar version should also apply

first step:

As a normal user login system, create a root password
in a terminal enter the command:

sudo passwd root

Then enter the password setting, thus completing the step of setting the root password

 

Step two:

Modify the file sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
at the end of file add the following two lines:

greeter-show-manual-login=true

all-guest=false 

 

 

third step:

Modify /etc/pam.d/gdm-autologin
        /etc/pam.d/gdm-password

Two files

sudo gedit /etc/pam.d/gdm-autologin
commented auth required pam_succeed_if.so user! = (about the third line) root quiet_success this line

sudo gedit /etc/pam.d/gdm-password
commented auth required pam_succeed_if.so user! = root quiet_success ( about the third line) the line


Step Four: Modify /root/.profile file

sudo gedit /root/.profile
The end of the file mesg n || truethis line modified to
tty -s&&mesg n || true

 

Deleted invasion

Guess you like

Origin www.cnblogs.com/hangzier/p/11145079.html