Re: Changing UID/GID

2003-06-11 Thread Shlomi Fish
On Wed, 11 Jun 2003, tsg wrote: > Hi everybody! > > Could You pease point me where I can get answers following questions: > 1. How can I now the UID of the user who started perl-script? Try $< (or $UID or $REAL_USER_ID with use English) for the real user id. Try $> or $EUID or $EFFECTIVE_USER_ID

Changing UID/GID

2003-06-11 Thread tsg
Hi everybody! Could You pease point me where I can get answers following questions: 1. How can I now the UID of the user who started perl-script? 2. How can I change UID/GID the script is running under. I need to start script with root privilegies and when drop them to apache.apache. Thanks in