After Fedora14 is installed, sudo is not enabled by default. You should first set sudo. The role of sudo is to allow the current non-root user to directly add sudo to the command before using commands without permissions, and then enter the password of the current user to complete the function of the root user, you don't have to switch users back and forth every time you use su. The sudo configuration file is located in/etc/sudoers and requires the root permission to read and write data. Find the line rootALL = (ALL) ALL, and then
After Fedora 14 is installed, sudo is not enabled by default. You should first set sudo.
The role of sudo is to allow non-root users to directly add sudo before the command when using commands without permissions,
You can enter the password of your current user to complete the root user function, instead of switching the user back and forth every time you use su.
The sudo configuration file is located at/etc/sudoers,
You must have the root permission to read and write data.
Find the line root ALL = (ALL) ALL,
Add a line to the end:
Username (TABLE) ALL = (ALL) (TABLE) ALL
Note that username is the specified sudo user and TABLE is the tab tabulation key.
In this case, enter the password for sudo.
The default sudo password is the user password.
If you do not want to enter the password of the current user at each input
You need to set it as follows:
Username (TABLE) ALL = (ALL) (TABLE) NOPASSWD: ALL
There are many other sudo settings.
For more information, see man.
The following are three sudo-related files:
FILES
/Etc/sudoers List of who can run what
/Var/run/sudo Directory containing timestamps
/Etc/environment Initial environment for-I mode on Linux and AIX