sudo of Linux commands

Source: Internet
Author: User

In a Linux system, it is not normally used because root has too much authority. Login root is only used in some special cases

Perform administrative tasks, typically using the SU and sudo commands for temporary use of root permissions.

1.su and sudo command comparison:

After entering the SU command under a normal user, you will be prompted to enter the password for the root account, then enter the privileged mode (exactly the same as the root login) and exit with exit:

When using the sudo command, you only need to enter the current user's password to execute commands that require root permission, and you can see that using the sudo command does not require a common user to know

Root password to execute root command

How to configure normal users to have permission to use the sudo command can refer to my article:

Https://www.cnblogs.com/leeyongbard/p/9513960.html

2. As root this has very strong permissions, switch to the normal user is not required to enter the authentication

You can use the SU user name or sudo su user name

sudo of Linux commands

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.