Linux study Note 5-how can this problem be solved?

Source: Internet
Author: User
If you are familiar with windows, you will think that it is very easy to execute every operation, but this is not the case after installing linux. You may think that you have logged on with the user name and password you set in advance after installing linux, you are the administrator, but you have to enter a password for any operation like a common user. This is a major feature of linux.

If you are familiar with windows, you will think that it is very easy to execute every operation, but this is not the case after installing linux. You may think that you have logged on with the user name and password you set in advance after installing linux, you are the administrator, but you have to enter a password for any operation like a common user. This is a major feature of linux, with high security.

$ Normal user

# Root User

The root user is a unique super administrator in the system (equivalent to the highest privilege of the system in windows), and the common user needs the ROOT permission in related operations. Root users can have all system permissions.

For example, a common user mutou

1. AllowSuTo root

The setting method is as follows: sudoPasswd
Password: <--- enter the Password of the user during installation
Enter new UNIX password: <--- new Root User password
Retype new UNIX password: <--- repeat the new Root User password
Passwd: the password is successfully updated.

2. switch to the root user and use su (switch user)Command

Enter the su root command.
Mutou @ mutou-desktop :~ $ Su root
Enter the root user password
Password:
Root @ mutou-desktop:/home/mutou #

3. Use the sudo command

Sudo is followed by a command

Enter the current user password to run the command as the root user temporarily (provided that the sudoer list contains your ID)

For example, sudo apt-get install dropbox

 
 

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.