in reply to Really real User Ids on Solaris

Not surprisingly merlyn has a similar snippet of code here that performs the same task without the system call - It may be useful to you as 'yet another way to do it' :-)

 

Replies are listed 'Best First'.
Re: Re: Really real User Ids on Solaris
by Nitrox (Chaplain) on Jul 22, 2002 at 21:32 UTC
    Nice! :) But doing the system call in mine will always return the username of the "true" user. -Nitrox