sudo moron

Craig White craigwhite at azapple.com
Fri Sep 9 16:24:02 UTC 2005


tail -n 6 /etc/sudoers

# Cmnd alias specification
Cmnd_Alias IPOD=/sbin/modprobe sbp2
sbp2_force_inquiry_hack=1, /sbin/rmmod sbp2
# User privilege specification
craig   ALL=(ALL) ALL
craig   ALL= NOPASSWD : IPOD

as user craig, I have a script in $HOME/.gtkpod/gtkpod.out which runs
automatically when I exit gtkpod program to un mount the ipod and remove
the module and the damn thing asks me for my password...how can I
prevent the need for a password?

#!/bin/sh
#
sudo /usr/bin/eject /dev/sda2
sudo /sbin/modprobe -r sbp2
sudo /usr/bin/eject /dev/sda2

(I seem to need to repeat the eject command to make it un-mount).

Craig




More information about the fedora-list mailing list