Solution to the sudo problem of the new user

Source: Internet
Author: User
Solve the sudo problem of the new user. a new user under Fedora14 cannot use the sudo command. The solution is as follows: 1. use the root user identity to enter the system 2. modify the file permission attribute of the file & quot;/etc/sudoers & quot; and add the file permission attributes that can be modified by the root user...
Solve the sudo problem of the new user. a new user under Fedora 14 cannot use the sudo command. The prompt is as follows:
Solution: 1. use the root user identity to enter the system 2. modify the file permission attribute of the file "/etc/sudoers" and add the permissions that can be modified by the root user. chmod u + w/etc/sudoers www.2cto.com 3. modify the content of this file: vim/etc/sudoers adds "xxx ALL = (ALL) ALL" under the "root ALL = (ALL) ALL" line ", xxx is the new user name. for example, if the user I added here is xm, add "xm ALL = (ALL) ALL", for example:

Save the file and enter (: x or: wq) in command mode ). 4. modify the file permission attribute of the file "/etc/sudoers" and remove the write permission of the root user. if chmod u-w/etc/sudoers does not restore the permission attribute of the file, a message indicating incorrect file attribute is returned when the new user uses sudo.
Done ~! Author: DBMZ

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.