Add sudo permissions

Source: Internet
Author: User

Error when executing sudo: username is isn't in the sudoers file.

Assuming the user name is username, There are two scenarios

1,root user executes Visudo command, increments at end of configuration file

Username all= (All) all

2, or Visudo into the configuration file, there is a sentence:

# # Uncomment to allow members of the group sudo to execute any command #%sudoall= (all) all

This guy, said it was this option to allow Sudo group users to perform sudo after opening. Oh, yes.

First, delete the # number in front of the second sentence, then execute the following command to add the user to the Sudo group, finished

Usermod-a-G sudo username

Attached: If the sudo group is not reported, increase the sudo group first

Groupadd sudo

===========================

Although the first step is less ~ or feel the second method more comfortable ~ ~ ~

No other, open the configuration file to see a bunch of English, the brain began to play a variety of illusions ~

And if you add a second, three, four users, you do not have to open the configuration file, directly add users into the group can ~ ~


Attached, add user to Group command description:

http://blog.csdn.net/pursue168/article/details/6443046

Add sudo permissions

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.