In Ubuntu, switching between root users and user users is a popular Linux system recently, because Ubuntu does not start root users by default. now we will introduce how to enter the root user. (1) switch from the user to the root user, whether logging on to Ubuntu in graphic mode, or the command...
In Ubuntu, switching between root users and user users is a popular Linux system recently, because Ubuntu does not start root users by default. now we will introduce how to enter the root user. (1) switching from a user to a root user, whether logging on to Ubuntu in graphic mode or logging on in command line mode, we will find that the default user is user, but when we need to perform some operations with root permissions (such as repairing and returning system files), we often need to use sudo authorization, which is very troublesome. www.2cto.com at this time we can switch to the root user, just execute sudo su to note: For security considerations, by default, Ubuntu root users do not have a fixed password, its password is randomly generated and dynamically changed. it seems to be changed every 5 minutes, so su (switch user) is not allowed, because we do not know the root password (2) switch from the root user back to the user. to switch from the root user back to the user, you only need to execute the command: su user (user is the user name you installed), or directly enter exit, you can also press Ctrl + D to launch www.2cto.com (3) to set a password for the root user. by default, the root user is none. The password is fixed and locked. if you want to set a password for the root user, you only need to execute the command: sudo passwd root and then follow the prompts to step by step. (1) as mentioned in su root, enter the root password to switch to the root user. note: After setting the password for the root user, you can still switch sudo su to the root user: in graphic mode, choose System> System Management> Users and Groups. you can also set a password for the root user. (4) disable and enable root logon to execute sudo passwd-l root (only disable root, but the root password is still saved), and then run the su root command to find that the authentication fails. start the root login again and run the sudo passwd-u root command to run www.2cto.com (5) in the graphic mode of Ubuntu automatic logon, choose System> System Management> Authorize and unlock in the logon window, and select automatic logon as user. Note: My Ubuntu is of the 10.04 server version.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.