[sudo-workers] closing all the file descriptors

Anthony Iano-Fletcher Anthony.Iano-Fletcher at nih.gov
Wed Dec 8 10:48:45 EST 2004


Hello,

sudo is a great tool. 

On occations I have wanted to pass extra information (e.g. X11
authentication cookies) when I use sudo.

Is there good way to pass authentication cookies without having to run
sudo twice (once to pass the info and once to run the command)?

There is a way to pass such info via file descriptor 3, but sudo
closes all its file descriptors greater than stderr (2). Would a patch
to add an option to change this behaviour be accepted? I'll happily make
such a patch.

		Anthony


-- 
Anthony R Iano-Fletcher        
  Room 2033, Building 12A,        http://dcb.cit.nih.gov/~arif
  National Institutes of Health,  Anthony.Iano-Fletcher at nih.gov
  12A South Drive, Bethesda,      Phone: (+1) 301 402 1741.
  MD 20892-5624, USA.



More information about the sudo-workers mailing list