Subversion Repositories DevTools

Rev

Rev 1281 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1281 Rev 3613
Line 1... Line 1...
1
Configuration of SUDO
1
Configuration of SUDO
2
 
2
 
3
- Install SUDO
3
- Install SUDO
-
 
4
- Run visudo
-
 
5
    - add the follwing lines to allow 'releasem' and 'buildadm' to
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
6
      perform required operationsas root without a password.
5
 
7
 
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
 
8
 
14
# Host alias specification
9
# Allow buildadm to run known commands as root
-
 
10
buildadm        ALL=(root) NOPASSWD: /home/buildadm/sbin/*
-
 
11
releasem        ALL=(root) NOPASSWD: /home/releasem/sbin/*
15
 
12
 
16
# User alias specification
-
 
17
 
13
 
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
-