[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ownership problems



Vetle Roeim wrote:



> on 2000-05-18, brad wrote:
>
> > Hello,
> >
> >     I'm launching a python script via CGI to do a couple of pretty
> > strange things.  One of which is to do a CVS 'update' and then a 'make'
> > and redirect the standard output/error back to the browser.  The problem
> > is that 'www-data' doesn't have permission to update through CVS.
> >     I have already chmod ug+xs the script.  Using perl or a shell script
> > I can get the effective user id correct,  but under python i can't get
> > it to work.  Is there some strange security switch I should be flipping?
> >
> >     Any help would be greatly appreciated.
>
> have you tried using the setuid() method in the os module to change the
> user id?
>
> vr

Calling getuid(),geteuid(),getgid() and getedig() all return 'www-data'
Trying to setuid(my id #) gives a 'OSError: [Errno 1] Operation not
permitted' error message.

--
Brad Gray                                      brad@partnersoft.com
Software Developer
Partner Software, Inc.                   http://www.partnersoft.com





Reply to: