Sudo Help needed

From: john hanson (datareactor@yahoo.com)
Date: Fri Oct 13 2006 - 00:59:30 EDT


Dear Gurus

I would like to have the following setup:

- User guest wants to gzip,gunzip files onwed user Bob
- User Guest wants kill the process used to other user
bob .
- and use only view bob ( crontab -l ) crontab file

Regards

I have the following sudoers file .
# Host alias specification
Host_Alias SERVERS = marble3

# User alias specification
User_Alias APPOPS = kashifm

# Cmnd alias specification
Cmnd_Alias U_SCPT = /usr/bin/kill
Cmnd_Alias K_SCPT = /usr/bin/gzip
Cmnd_Alias M_SCPT = /usr/bin/gunzip
Cmnd_Alias S_SCPT = /usr/bin/crontab
Cmnd_Alias S_DIR = /med/appl/mgr/admin/*

# Defaults specification

# Runas alias specification
Runas_Alias APP = tabsmgr

# 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
APPOPS SERVERS = (APP) U_SCPT
APPOPS SERVERS = (APP) K_SCPT
APPOPS SERVERS = (APP) M_SCPT
APPOPS SERVERS = (APP) S_SCPT
APPOPS SERVERS = (APP) S_DIR
# Host alias specification

Host_Alias SERVERS = marble3

# User alias specification
User_Alias APPOPS = guest

# Cmnd alias specification
Cmnd_Alias U_SCPT = /usr/bin/kill
Cmnd_Alias K_SCPT = /usr/bin/gzip
Cmnd_Alias M_SCPT = /usr/bin/gunzip
Cmnd_Alias S_SCPT = /usr/bin/crontab
Cmnd_Alias S_DIR = /med/appl/tabsmgr/admin/*

# Defaults specification

# Runas alias specification
Runas_Alias APP = bob

# 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
APPOPS SERVERS = (APP) U_SCPT
APPOPS SERVERS = (APP) K_SCPT
APPOPS SERVERS = (APP) M_SCPT
APPOPS SERVERS = (APP) S_SCPT
APPOPS SERVERS = (APP) S_DIR
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:00 EDT