User Tools

Site Tools


build:sudo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
build:sudo [2011/05/21 11:29]
SLUUG Administration Use new /etc/sudoers file. (CMB)
build:sudo [2011/05/21 12:16] (current)
SLUUG Administration [Configuration] Don't allow software installation without a password. (CMB)
Line 17: Line 17:
 </​code>​ </​code>​
  
-Add any admin users to the wheel group. You can use the ''​vigr''​ command, or ''​adduser //​username//​ //​groupname//''​.+Add any admin users to the ''​wheel'' ​group. You can use the ''​vigr''​ command, or ''​adduser //​username//​ //​groupname//''​. 
 +<code rootshell>​ 
 +for USER in root lvl booch mk jmuse donls gary blac gfstut; do 
 +  usermod -a -G wheel $USER 
 +done 
 +</​code>​
   ​   ​
-Edit /​etc/​sudoers (have to do it by running visudo) to look like this:+Edit ''​/​etc/​sudoers'' ​(have to do it by running ​''​visudo''​) to look like this:
 <​file>​ <​file>​
 # Require root password (instead of the user's own password). # Require root password (instead of the user's own password).
Line 49: Line 54:
  
 # These users may run these commands without having to supply a password. # These users may run these commands without having to supply a password.
-%wheel ​ ALL = NOPASSWD: ​SOFTWARE_INSTALL, ​SOFTWARE_UPDATE+%wheel ​ ALL = NOPASSWD: SOFTWARE_UPDATE
 </​file>​ </​file>​
  
build/sudo.1305995377.txt.gz · Last modified: 2011/05/21 11:29 by SLUUG Administration