[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getting paid!!!
gerry....
here are my commands....
cdwrite is aliased to:
sudo /sbin/rmmod pcd; sudo /sbin/insmod pg; sudo /usr/bin/cdrecord -v speed=2 dev=0,0 !*
mntcdwrite is aliased to:
sudo /sbin/rmmod pg; sudo /sbin/insmod pcd; sudo mount -t iso9660 /dev/pcd0 /mnt/cdwrite
umntwrite is aliased to:
sudo umount /mnt/cdwrite; sudo /sbin/insmod pg
as user=freyberg I would execute: cdwrite CD_IMAGE
my sudoers file looks like....
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for the details on how to write a sudoers file.
#
# Host alias specification
Host_Alias LINUX=claspc1.cebaf.gov
Host_Alias LOCAL=localhost
# User alias specification
User_Alias CLASUSERS=freyberg,bedlinsk
# Cmnd alias specification
#Cmnd_Alias ZIPSTUFF=zipmnt
Cmnd_Alias RCSTUFF=/etc/rc.d/init.d/msqld stop,/etc/rc.d/init.d/msqld start, /e
c/rc.d/init.d/httpd stop, /etc/rc.d/init.d/httpd start
Cmnd_Alias ZIPSTUFF=/bin/mount -t ext2 /dev/hdb1 /mnt/zip,/sbin/mkfs -t ext2 /
ev/hdb1,/sbin/fdisk /dev/hdb,/bin/umount /dev/hdb1
Cmnd_Alias FLOPPYSTUFF=/bin/mount -t ext2 /dev/fd0 /mnt/floppy,/sbin/mkfs -t e
t2 /dev/fd0,/bin/umount /dev/fd0
Cmnd_Alias CDWRITESTUFF=/usr/bin/cdrecord, /sbin/rmmod pg, /sbin/insmod pg, /s
in/rmmod pcd, /sbin/insmod pcd, /bin/mount -t iso9660 /dev/pcd0 /mnt/cdwrite, /
in/mount -t iso9660 /dev/cdrom /mnt/cdrom, /bin/umount /mnt/cdrom, /bin/umount
mnt/cdwrite
# User privilege specification
root ALL=(ALL) ALL
CLASUSERS LINUX= NOPASSWD: ZIPSTUFF, FLOPPYSTUFF
CLASUSERS LINUX= NOPASSWD: CDWRITESTUFF
CLASUSERS LINUX= NOPASSWD: RCSTUFF