in reply to starting a process as a different user

Create a setuid C program that runs the perl script as approperiate user. (Use a setuid-root program and call setuid from it if you need to change the real id too.)

  • Comment on Re: starting a process as a different user

Replies are listed 'Best First'.
Re: Re: starting a process as a different user
by ctilmes (Vicar) on Apr 15, 2004 at 15:54 UTC
    Better to use sudo than try to write this securely yourself.