Add sudo to a command to execute the command with the permissions of the Super User. But not any user can use sudo. this command can be used only when the user belongs to the sudo group. If you want to add a user to the sudo group, you can log on to the system as the root user and execute the mongodo command (this command is actually to use vi to edit the/etc/sudoers file, the/etc/sudoers file itself is read-only ). Find & quot; rootALL = (ALL) ALL & quot; in the file
Add sudo to a command to execute the command with the permissions of the Super User. But not any user can use sudo. this command can be used only when the user belongs to the sudo group.
If you want to add a user to the sudo group, you can log on to the system as the root user and execute the mongodo command (this command is actually used to edit the/etc/sudoers file using vi, the/etc/sudoers file itself is read-only ). Find the line "root ALL = (ALL) ALL" in the file, and add a line "user ALL = (ALL) ALL" below ", in this way, the user is added to the sudo group.
Log on with a user and run a command with sudo, such as sudo login do :). The system will prompt you to enter the password. in this case, you need to enter the user password instead of the root password. If you do not want to enter the password, you can modify "user ALL = (ALL) NOPASSWD: ALL" when executing mongodo ".
This article is from "? Pan Songsong? Small blog, please be sure to keep this source http://navyaijm.blog.51cto.com/4647068/816628