[ start | index | login ]
start > Linux > Commands > SUDO

SUDO

Created by mpecher. Last edited by mpecher, 5 years and 361 days ago. Viewed 473 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
Typical SUDO file, this example grants cruisecontrol user sudo access to the cruisecontrol service
# 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

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

User_Alias DISCOUSER=centennl Cmnd_Alias DISCOCMD=/etc/init.d/disco Cmnd_Alias CRUISECMD=/sbin/service cruisecontrol * DISCOUSER ALL=(root) DISCOCMD cruisecontrol ALL=(root) NOPASSWD: CRUISECMD test ALL=(root) NOPASSWD: CRUISECMD

no comments | post comment

Menu:
Java & J2EE
Development
Books

Help:
Help FAQ
Formatting


< May 2012 >
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031


Logged in Users: (0)
… and a Guest.



Disclaimer: Views and opinions are that of the individual author, and not that of Marand Custom Solutions. This site is an open forum for technical content, and the company accepts no liability for any content or view expressed.