in reply to Re: Executing a program as another user
in thread Executing a program as another user

The target user is dynamic. Therefore I can't chmod it. I could chmod it every time I run the script, but since the script is a CGI, I would run into race conditions. The task would also be much simpler if the target script to be run as another user wasn't the initial script itself. ;)
  • Comment on Re: Re: Executing a program as another user

Replies are listed 'Best First'.
Re: Re: Re: Executing a program as another user
by tstock (Curate) on Feb 14, 2002 at 04:44 UTC
    take a look at CGIwrap, I think it might fit your needs really nicelly, and would have sugested sooner if I knew you wanted to run the script as a CGI.

    http://cgiwrap.unixtools.org/

    Good luck,
    Tiago