Su and sudo commands

Source: Internet
Author: User

The su command is used to switch between different users , such as using User1 login system, but to perform some administrative operations, such as Useradd, ordinary users do not have this permission, there are two ways to solve the problem.

1: Exit the User1 user, re-login to the system root, but the root password does not tell many people, which is not conducive to system security and management.

2: Use the SU command to switch to root to add the user's work, after the addition of the SU command to quit the root user.

sudo normal user gets super permissions

In the Linux system, administrators often have many, if each administrator to manage the daily work with root identity, permission control is a must face problem. Normal user's daily operation permissions are limited, how to let

Regular users also do some system management work. Sudo is a good solution to this problem. sudo allows users to use commands and programs that require root to run in a specific way.

It says that the workaround for the Nannan user is not in the sudoers file

You can add users by graphical interface, etc...

Su and sudo 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.