Running subshells under setuid

Jp Calderone exarkun at intarweb.us
Thu Feb 13 14:09:34 EST 2003


On Thu, Feb 13, 2003 at 09:17:37AM -0800, czrpb wrote:
> Anders/All:
> 
> Unfortunately using os.exec I can not then do something like:
> 
>   for path in paths:
>     os.exec(RSYNC,path)
> 

  def rsync(params):
      if os.fork() == 0:
          os.execl('/usr/bin/rsync', 'rsync', *params)

  Jp

-- 
 up 5 days, 0:28, 3 users, load average: 0.06, 0.16, 0.08
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030213/96896f1e/attachment.sig>


More information about the Python-list mailing list