sudo usage précis-writers

Source: Internet
Author: User


Visodu used to edit sudo, such as VI, self-contained error check, the inside must be capitalized, changed to take effect


Sudo-l the current user can execute the command-B background Execution command Note that Sudo verifies that the password is the current user's password



To password sudo format:

User or% Group or user class name can log on to host = (can transform identity) executable command 1, commands that can be executed 2

Password-free sudo format:

User or% Group or user class name can log on to host = (can transform identity) nopasswd: executable command 1, executable command 2


Cases:

Location 1 position 2 position 3 position 4

Root all= (All) all

%wheel all= (All) Nopasswd:all


Location 3 used to write a change of identity, such as root writing.

Host_alias SERVER=NO1,NO2,192.168.1.0/24 defines a host or network segment that can be logged in, written in position 2, basically useless, generally with all

User_alias Admins=liming,gem Define user class name, write in position 1

Cmnd_alias Shutdown=/usr/sbin/halt,/usr/sbin/shutdown defines the command class name, if you want to prohibit the execution of the command before adding! , to write the absolute path, write in position 4


sudo usage précis-writers

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.