sudo moron
Craig White
craigwhite at azapple.com
Fri Sep 9 10:46:35 MST 2005
gonna show my ignorance when it comes to sudo
# tail -n 8 /etc/sudoers
# Cmnd alias specification
Cmnd_Alias IPOD=/sbin/modprobe sbp2
sbp2_force_inquiry_hack=1, /sbin/rmmod sbp2
Cmnd_Alias EJECT=/usr/bin/eject
# User privilege specification
craig ALL=(ALL) ALL
craig ALL= NOPASSWD : IPOD
craig ALL= NOPASSWD : EJECT
$ cat gtkpod.out
#!/bin/sh
#
sudo /usr/bin/eject /dev/sda2
sudo /sbin/modprobe -r sbp2
sudo /usr/bin/eject /dev/sda2
I am trying to get the ipod unmounted automatically at close of gtkpod.
If I launch gtkpod (as user) via cli, I am asked for password when I the
gtkpod.out program.
How can I get it to stop asking for my password?
Craig
More information about the PLUG-discuss
mailing list