in reply to Re: How do you grab username/login id in Unix?
in thread How do you grab username/login id in Unix?
$ENV{LOGNAME} is setted at login time, so if someone log in as popeye and the do
su
his $ENV{LOGNAME} is again popeye. But if popoye do
su -
his $ENV{LOGNAME} is again popeye.