When I su - <username> for some users (from root to the new user), the LOGNAME environment variable doesn't change. I have it set up for my PS1 to put my logname in the prompt so I know who I am. This happens on all systems with the same user. But it doesn't happen with other users. It happens on Solaris 7 and Solaris 9.
Anyone have any idea what I'm doing wrong? I do put the - in the su so the .profile is read.
Anyone have any idea what I'm doing wrong? I do put the - in the su so the .profile is read.