Subversion Repositories DevTools

Rev

Rev 3616 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

Configuration of SUDO

- Install SUDO
- Run visudo - add "releasem" line to let the "releasem" user run these scripts /home/releasem/sbin/make_writable, etc., as root, without a password

nbannon@auperaunx26:/opt/csw/etc# cat sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# User privilege specification
root    ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL

# Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL
releasem,nbannon        ALL=(root) NOPASSWD: /home/releasem/sbin/*

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now