sudo moron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux