Instance
The company's video push server recently recruit a new person, in order to let him familiar with the business as soon as possible, decided to give him a new account on the server, in order to avoid some wrong operation, usually let him in his account under the view of some files, when the need for root authority, only sudo past.
Operation:
(1) Edit/etc/sudoers file
MIS All=nopasswd:all//define a group MIS, this group of people do not need to output password when sudo to root
User_alias MIS = ceph//Add members of this group, there is only one member of Ceph, and the members are separated by commas
Note: This file is saved in the need to force save, that is, wq!
There is a space in front of User_alias
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/83/65/wKiom1dyM82hdgNYAAAJEq891jc436.png "title=" Sogou 20160628162202.png "alt=" Wkiom1dym82hdgnyaaajeq891jc436.png "/>
(2) test
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/83/65/wKioL1dyNuGRjQpVAAAZpWL3mGA641.png "title=" Sogou 20160628163513.png "alt=" Wkiol1dynugrjqpvaaazpwl3mga641.png "/>
This article is from the "Court of the Odd Tree" blog, please be sure to keep this source http://zhangdl.blog.51cto.com/11050780/1793676
Linux trivia/etc/sudoers File application Example