Linux skills: A Little Bit Of sudoers permission-Linux general technology-Linux technology and application information. The following is a detailed description. Original Author: feelam
Today, when a common user is using sudo on the terminal, the following message is returned: (feelam is my user name)
Feelam is not in the sudoers file. This incident will be reported.
In the past, I often used sudo to do things, and this prompted me that the user is not in/etc/sudoers! Strange.
After querying the information, you must add the user. For convenience, I will give it a sentence.
# Allow root to run any commands anywhere
Root ALL = (ALL) ALL
Feelam ALL = (ALL) ALL
Unfortunately, I don't know how to compile the mongodo command. I can only use the most common method:
1. root Login
2. Enter/etc
3. Edit the sudoers file and add the preceding statement.
4. Save it as a sudoers file to the desktop (if you save it as overwrite, you will be prompted not to write the file to the read-only folder !)
5. copy the file and overwrite/etc/sudoers.
6. cd/etc
7. chmod 0440 sudoers (because I will prompt that my file must have 0440 permissions when using sudo by common users)
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