using sudo with nohup

Miles, Karl Karl.Miles at littlewoods.co.uk
Thu Jul 17 02:14:08 EDT 2003


Could you not, instead of adding extra executables to the users list of
permissions, just do 'sudo -v' to get the password and extend the timeout?

K

-----Original Message-----
From: Ladner, Eric (Eric.Ladner) [mailto:Eric.Ladner at chevrontexaco.com]
Sent: 16 July 2003 18:11
To: Lehr Karen; sudo-users at sudo.ws
Subject: RE: using sudo with nohup



Nohup detatches from the current process and you get a process that's
suspended in the background waiting for input on a detached channel
(HP-UX says "Stopped (tty output)" and the only thing you can do then is
kill it)

Here's a dirty workaround:

$ sudo date
# Date executes and the password is cached for a few minutes.
$ nohup sudo some_script &
# Executes without asking for a password, since it's cached.

E

-----Original Message-----
From: Lehr Karen [mailto:karen.lehr at siemens.com] 
Sent: Wednesday, July 16, 2003 09:13
To: 'sudo-users at sudo.ws'
Subject: using sudo with nohup


Hello, I'm having trouble using sudo with nohup and &.  I issue command:
script_name nohup & A PID returned, then the password prompt.  When I
type in the password, it shows on the screen.  After password is typed
and I hit enter, the job is cancelled.  
____________________________________________________________ 
sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-users



____________________________________________________________ 
sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-users

***********************************************************************
This e-mail and its attachments are confidential and are intended for 
the above named recipient only. If this has come to you in error, 
please notify the sender immediately and delete this email from your
system. You must take no action based on this, nor must you copy or
disclose it or any part of its contents to any person or organisation.

Statements and opinions contained in this email may not necessarily 
represent those of Littlewoods. Please note that email communications 
may be monitored. 

The registered office of Littlewoods Limited and its  subsidiaries
is 100 Old Hall Street, Liverpool, L70 1AB. 
Registered number of Littlewoods Limited is 262152 
 ***********************************************************************


More information about the sudo-users mailing list