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.