logname(1)
NAME
logname − get login name
SYNOPSIS
logname
DESCRIPTION
logname returns the name of the user running the process. It does this by returning the contents of the environment variable $LOGNAME, which is set when a user logs into the system.
FILES
/etc/profile
SEE ALSO
env(1), login(1).
cuserid(3C), logname(3X), environ(5) in the CX/UX Programmer’s Reference Manual.
NOTES
This method of determining a login name is subject to forgery.
CX/UX User’s Reference Manual