Ubuntu 12.04 root user login settings

Ubuntu 12.04 does not allow root login by default. In the login window, only normal users and guest logins can be seen. After logging in to Ubuntu as an ordinary user, we need to make some modifications. After the normal user logs in, modify the system configuration file and switch to super user mode. In the terminal window, type: sudo -s. Then enter the password for the normal user login, press Enter. Enter the root user permission 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 #Manually enter the username and password for logging in to the system

Allow-guest=false #Do not allow guest login

Then we start the root account:

Sudo passwd root

Enter the roott account password as prompted.

Restart ubuntu, the login window will have a "login" option, then we can log in as root.

What is the default root password of UBUNTU, modify the root password?

The default root password is random, that is, each time you boot, you have a new root password. We can enter the command sudo passwd in the terminal, and then enter the current user's password, enter,

Second, the terminal will prompt us to enter a new password and confirm that the password at this time is the new password of root. After the modification is successful, enter the command su root, and then enter the new password is ok.

Third, the analysis is not the default, because you have not set a password for root, the first user is in the admin group, so he can set the password for root, sosudo passwd root[sudo] password for you :---> enter your Password, will not display

Enter new UNIX password:

--- > Set the root password Retype new UNIX password:

--> Repeat ======================================================= =============================

After logging in with the user created during installation, execute sudo passwd root in the shell and enter the password:

After entering the newly created user password, enter Enter new UNIX password:

Then enter the root password you want to set twice and you will see

Password updated successfully! =========================================================== ========================

After installation, you can go to the user and group to change, just change it. To use root when logging in, you can change it in the "Login Interface" and let the administrator log in to the system.

Din Rail Terminal Block

Din Rail Connectors,Din Terminal Block,Din Rail Mount Terminal Block,Rail Terminal Block

Cixi Xinke Electronic Technology Co., Ltd. , https://www.cxxinke.com

This entry was posted in on