3.3-sudo detailed

Source: Internet
Author: User

sudo allows ordinary users to temporarily gain root privileges and execute some commands.

Visudo Edit Profile configuration file /etc/sudoers

Core configuration root all= (all) all

Explanation:root is User name all user Source IP= ( all identity contains root) All commands are available

Configure your own WYP all= (root)/bin/ls

WYP can sudo ls/root view folders that should not have permissions

After the sudo command, the user enters their own password and can execute it. The user password is saved temporarily and can execute multiple sudo commands over a period of time without having to enter the user password again. You can modify the Save Password option in the configuration file.

Configure yourself Wyp all= (root) nopasswd: /bin/ls

User WYP does not need to enter a password when executing the sudo command

sudo-l View the current user, you can perform those sudo commands.


3.3-sudo detailed

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.