On Wed, 15 Dec 1999, Derek Simkowiak wrote: >> use getuid and then look that up in the /etc/passwd file. Not hard if you >> know what you're doing. > > Unless the system is using shadowed passwords. > > Is there no system call for this? I'm using shadowed passwords and /etc/passwd still holds the UID info. davor:x:500:500:Davor Cengija:/home/davor:/bin/zsh ivan:x:501:501::/home/ivan:/bin/bash -- v Davor Cengija [EMAIL PROTECTED] =================================== "Please allow 30 days for delivery"
- [expert] Determining current user in C Ivan J. Wagner
- RE: [expert] Determining current user in C Ian Douglas
- RE: [expert] Determining current user in C Derek Simkowiak
- RE: [expert] Determining current user in C Ian Douglas
- Re: [expert] Determining current user in C Davor Cengija
- Re: [expert] Determining current user in C Fabien Deschodt
- Re: [expert] Determining current user in ... Derek Simkowiak
- Re: [expert] Determining current user in ... Ivan J. Wagner
- RE: [expert] Determining current user in C Alex V Flinsch
- Re: [expert] Determining current user in C Christopher Cox