How do I programmatically find out in C who the current user (i.e. user
executing the program)? I know getuid() will give me the user id but I
want to know the user name. I don't consider using getenv() to get $HOME
or the $USER environment variable secure because those can changed.

Thanks,
Ivan Wagner

Reply via email to