Visodu used to edit sudo, such as VI, self-contained error check, the inside must be capitalized, changed to take effect
Sudo-l the current user can execute the command-B background Execution command Note that Sudo verifies that the password is the current user's password
To password sudo format:
User or% Group or user class name can log on to host = (can transform identity) executable command 1, commands that can be executed 2
Password-free sudo format:
User or% Group or user class name can log on to host = (can transform identity) nopasswd: executable command 1, executable command 2
Cases:
Location 1 position 2 position 3 position 4
Root all= (All) all
%wheel all= (All) Nopasswd:all
Location 3 used to write a change of identity, such as root writing.
Host_alias SERVER=NO1,NO2,192.168.1.0/24 defines a host or network segment that can be logged in, written in position 2, basically useless, generally with all
User_alias Admins=liming,gem Define user class name, write in position 1
Cmnd_alias Shutdown=/usr/sbin/halt,/usr/sbin/shutdown defines the command class name, if you want to prohibit the execution of the command before adding! , to write the absolute path, write in position 4
sudo usage précis-writers