Linux Common Commands--visudo

Source: Internet
Author: User
visudo 编辑 sudoers 文件

Syntax format: visudo "option" su [option]
Attention:

  1. Visudo command and subsequent options and user names, there must be at least one space between each element
  2. The Visudo command is specifically used to edit the/etc/sudoers file, and provides the functionality for grammar checking.
    Parameter options:-C, manual syntax checking
    Case one:
    Use parameter-c to check syntax

    Case TWO:
    Use the Visudo command to authorize regular user Tom

    Added a normal user Tom line in the 92 line position

    To use Tom again to create a user, you need to use the sudo command

    Case THREE:
    sudo power configuration Instructions
    % User Group machine = (permission to use which role is authorized)/usr/sbin/useradd
user or Group on behalf of authorized users machine = (authorization role) commands that can be executed
User Machine= COMMANDS
Tom All= (All) /usr/sbin/useradd

Linux Common Commands--visudo

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.