sudo moron

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: Main PLUG discussion list
Subject: sudo moron
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

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss