Is isn't in the Sudoers file resolution (turn)

Source: Internet
Author: User
Tags save file
Solution:
First need to switch to root identity
$SU-
(Note that there is-, this is different from Su, when the command "SU" is only switched to root, but does not pass the root environment variables, or the current user's environment variables, with the "Su-" command to bring the environment variables together, like the same as root login

And then
$visudo//Remember, there are no spaces between VI and sudo

1. Move the cursor to the last line
2, press A, enter append mode
3, input
Your_user_name all= (All)
4, press ESC
5, input ": w" (Save file)
6, input ": Q" (exit)

This puts yourself in the sudo group, and you can use the sudo command.

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.