On Tue, 2009-05-26 at 17:29 -0700, Jon M. Hanson wrote: > Cron doesn't have a way to prompt for your sudo credentials. You'd > probably have to run that as the true root user and not sudo. Cron > usually has it's own user that execute things so you could also make > it so that the cron user can do what you're trying to do and get rid > of the sudo. ---- you can use NOPASSWD option in sudoers file to indicate specific users/commands that don't require any authentication. for example, I have done this in the past (no longer necessary) # Cmnd alias specification Cmnd_Alias IPOD=/sbin/modprobe -r sbp2 Cmnd_Alias EJECT=/usr/bin/eject /dev/sda2,/usr/bin/eject /dev/sdb2 # User privilege specification craig ALL=(ALL) ALL craig ALL= NOPASSWD : IPOD, EJECT Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss