For When You Can't Have The Real Thing
[ start | index | login ]
start > sudo

sudo

Created by dave. Last edited by dave, 15 years and 149 days ago. Viewed 3,407 times. #2
[diff] [history] [edit] [rdf]
labels
attachments

Sample sudoers file

Edit with visudo

# sudoers file

# Host alias specifications

# Command alias specifications

Cmnd_Alias XDROOP=/usr/sbin/xdroop Cmnd_Alias SAFE=/usr/sbin/shutdown,/usr/sbin/mount,/usr/sbin/xdroop

# User specifications

root ALL=(ALL) ALL

local ALL=XDROOP dave ALL=SAFE

user apollo=/sbin/shutdown -h now

Another example

# Host alias specification
Host_Alias ETHNODES=export,spaten

# User alias specification User_Alias ETHUSERS=csheppar

# Cmnd alias specification Cmnd_Alias ETHEREAL=/usr/bin/ethereal

# User privilege specification root ALL=(ALL) ALL ETHUSERS ALL=(ALL) ALL # ETHUSERS ETHNODES=(ALL) ETHEREAL

...aaaand another:

%webdev ALL = /sbin/service
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt