Two methods to open the sudo command in Fedora8

Source: Internet
Author: User
To facilitate system management, the Fedora8 series has a built-in sudo mechanism. Its concept is to authorize specific users to execute some root commands. However, after Fedora8 is installed, this function is disabled by default. To enable this function, follow the two methods below. First, switch to the root permission, change the/etc/sudoers permission to 0744, and then edit it, or use the cmddo command to edit it, and change 83 rows % wheelALL = (ALL) remove ALL comments (note:

To facilitate system management, the Fedora 8 series has a built-in sudo mechanism. Its concept is to authorize specific users to execute some root commands. However, after Fedora 8 is installed, this function is disabled by default. To enable this function, follow the two methods below.

First, switch to the root permission, change the/etc/sudoers permission to 0744, and then edit the permission, or use the mongodo command to edit it and set the 83 lines

% Wheel ALL = (ALL) ALL

(Note that there is no NOPASSWORD at the end), and then add your current user to the user group of the wheel (edit the/etc/group file and add your user name after the wheel file, separated by ","), OK, so that you can use sudo to execute any root command. Of course, you need to know the root password, do not add a NOPASSWORD after the last ALL password (not recommended ).

Second, you can create a user group under Fedora 8 and add the user group to the sudoers file. For example

% Leekooqi All = (All) ALL

In this way, the effect is the same.

If you don't want to give them all the root commands, you can add a single user to sudoers in the following format. For example:

Leekooqi All = (root) NOPASSWORD/etc/init. d/tomcat5

In this way, you add the leekooqi user with the permission to operate the tomcat5 command without the password.

Related Article

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.