logname
Display your login name. SVR4 prints the value of the LOGNAME environment variable located in /etc/profile. Solaris looks the user up in /var/adm/utmp, which is where information is kept about logged-in users. See also whoami.