sudo moron

Judd Pickell pickell at gmail.com
Fri Sep 9 12:05:27 MST 2005


Maybe it is just me, but wouldn't bypassing the password for sudo be 
defeating the purpose of sudo?

I would probably recommend running gtkpod as root, so that you are prompted 
before it starts then you don't have to enter it on exit...

Sincerely,
Judd Pickell

On 9/9/05, Craig White <craigwhite at azapple.com> wrote:
> 
> 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 - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.plug.phoenix.az.us/pipermail/plug-discuss/attachments/20050909/e70ce642/attachment-0001.htm


More information about the PLUG-discuss mailing list