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 with use English for the effective
user ID.

> 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.
>

perldoc POSIX.

(and search for setuid).

Regards,

        Shlomi Fish

> Thanks in advance for help.
> Best regards
> Sergios
>
>



----------------------------------------------------------------------
Shlomi Fish        [EMAIL PROTECTED]
Home Page:         http://t2.technion.ac.il/~shlomif/

An apple a day will keep a doctor away. Two apples a day will keep two
doctors away.

        Falk Fish

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to