This shows you the differences between two versions of the page.
| 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> | ||