Discussion Locked

AIX logname command

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

where does the AIX logname command get its info from?
I know it isn't the $LOGNAME env variable as I have changed the variable and the logname command still gives me it's original answer.

3 replies

by nico baggus

It uses the system service getlogin()
which looks up the the username who logged
in on the terminal first.

HIH,
Kind regards,
Nico Baggus

This discussion is closed to new replies.