Linux study Note 5

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 need to perform any operations like normal users...

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. allow su to root

It is very simple. The following is the setting method: sudo passwd
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 run the 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

 
 

 

What is this article ?" Blog

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.