Sudo with background processes

Todd C. Miller Todd.Miller at
Wed Feb 25 15:56:12 EST 2004

The simplest solution is probably to just run "sudo -v" before the
background scripts are run.  That will update the user's time stamp
file which will allow 5 minutes of sudo user w/o prompting for a
password which should be enough to avoid a password prompt.

Alternately, you may be able to use sudo's -b option to run commands
in the background.  Sudo will prompt for the password as needed and
then run the command in the background.

 - todd

More information about the sudo-users mailing list