> > 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.
Why? Doesn`t it just put an x in the password field? What`s the problem?

> Is there no system call for this?
You should have a look at the man pages of getlogin and getpwuid to make
your choice. They may be equivalent for your need, but the second may be
more powerful.... and you can use with getuid or geteuid.

Fabien Deschodt

Reply via email to