string posix_getlogin ( )

Code Examples / Notes » posix_getlogin

philip

Note that this function returns the owner that the process *started* as. Even if you call posix_setuid (or posix_seteuid) it will still report the username the process started as.
use get_current_user() to get the effective real user.