LOGNAME(1)                                                          LOGNAME(1)


NAME
     logname - get login name

SYNOPSIS
     logname

DESCRIPTION
     logname prints the name of the user who invoked the command.  It gets
     this name via cuserid(3S).

SEE ALSO
     su(1), login(1), cuserid(3S), environ(5)

DIAGNOSTICS
     logname exits with a value of 1 if cuserid returns NULL, otherwise it
     exits with a 0.


                                                                        Page 1