[Email protected]:~# apt-get install-y sudo
[Email protected]:~# vim /etc/sudoers is authorized for existing User1 users ## this file must be edited with the ' Visudo ' command as root.## please consider adding local content in /etc/sudoers.d/ instead of# directly Modifying this file.## see the man page for details on how to write a sudoers file. #Defaults env _resetdefaults mail_badpassdefaults secure_path= "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Host alias specification# User alias specification# Cmnd alias Specification# user privilege specificationroot all= (ALL:ALL) ALL user1 all= (ALl:all) all # allow members of group sudo to execute any command%sudo all= (All:all) all # see sudoers (5) for more information on "#include" directives: #includedir /etc/sudoers.d Forced Save:: w!
This article is from the "Soul Bucket" blog, please be sure to keep this source http://990487026.blog.51cto.com/10133282/1758696
Deian Authorized user sudo permissions