| 119 |
ghuddy |
1 |
Configuration of SUDO
|
|
|
2 |
|
|
|
3 |
- Install SUDO
|
|
|
4 |
- Run visudo - add "releasem" line to let the "releasem" user run these scripts /home/releasem/sbin/make_writable, etc., as root, without a password
|
|
|
5 |
|
|
|
6 |
nbannon@auperaunx26:/opt/csw/etc# cat sudoers
|
|
|
7 |
# sudoers file.
|
|
|
8 |
#
|
|
|
9 |
# This file MUST be edited with the 'visudo' command as root.
|
|
|
10 |
#
|
|
|
11 |
# See the sudoers man page for the details on how to write a sudoers file.
|
|
|
12 |
#
|
|
|
13 |
|
|
|
14 |
# Host alias specification
|
|
|
15 |
|
|
|
16 |
# User alias specification
|
|
|
17 |
|
|
|
18 |
# Cmnd alias specification
|
|
|
19 |
|
|
|
20 |
# Defaults specification
|
|
|
21 |
|
|
|
22 |
# User privilege specification
|
|
|
23 |
root ALL=(ALL) ALL
|
|
|
24 |
|
|
|
25 |
# Uncomment to allow people in group wheel to run all commands
|
|
|
26 |
# %wheel ALL=(ALL) ALL
|
|
|
27 |
|
|
|
28 |
# Same thing without a password
|
|
|
29 |
# %wheel ALL=(ALL) NOPASSWD: ALL
|
|
|
30 |
releasem,nbannon ALL=(root) NOPASSWD: /home/releasem/sbin/*
|
|
|
31 |
|
|
|
32 |
# Samples
|
|
|
33 |
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
|
|
|
34 |
# %users localhost=/sbin/shutdown -h now
|