Sudo configuration in linux

Source: Internet
Author: User
In linux, the sudo configuration uses Sudo, which allows a user to execute certain commands as a super user and other users to execute some commands & mdash; this is especially useful for system management. The prerequisite for using sudo is that you must already have your own users...
In linux, the sudo configuration uses Sudo to allow a user to execute certain commands as a Super User, it also allows others to execute some commands-this is especially useful for system management. To use sudo, you must have your own user name and password. Log on to the system with the root account, use vi to edit the/etc/sudoers file, add the user name to authorize the sudo command to be executed, and execute the command: user1 (login user) ALL (host name) = (ALL) (as a user) ALL (absolute path of the command) example: www.2cto.com user1 ALL = NOPASSWD:/home/command. sh -- allows user1 to execute/home/command. sh file, and you do not need to enter a password during execution. User0 ALL = NOPASSWD: ALL -- allow user0 users to execute any command without a password.
 
Related Article

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.