Sudo with background processes

Ladner, Eric (Eric.Ladner) Eric.Ladner at
Wed Feb 25 13:15:50 EST 2004

Launching the script with sudo gets your fresh key out there for 5
minutes.  The only problem with that is if in the script you call sudo
15 minutes later, it'll prompt you again.

The thing to do is remove the sudo inside the script and have them
launch the script with sudo.


-----Original Message-----
From: sudo-users-bounces at [mailto:sudo-users-bounces at] On
Behalf Of Gil Standen
Sent: Tuesday, February 24, 2004 8:41 PM
To: sudo-users at
Subject: Sudo with background processes

Hi, Our oracle database uses a ksh script to take a hot backup (copy) of
the database files.  Some commands are run on the database via sqlplus
and some os copy commands are executed.  Recently the backup script was
given a major upgrade and was broken into three separate scripts, that
is a main script and two subroutines that are called.  Also, copy and
move commands were suffixed with "&" so that they would run in the

The backup script is run by operators via their own logins and "sudo".
It ran fine when it was one script. Now that it is "3" scripts and
processes are spawned in the background suddenly it is prompting the
sudo users for a password.  Can you suggest what must be done to get the
scripts to run as before via the "sudo" command without any prompt for
password ?

It's appreciated !!

sudo-users mailing list <sudo-users at>
For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list