At the company where I work we have a certain shared accounts that anyone can use over SSH to perform specific tasks. At this point, we have too many users and each of them has their own usability perks such as shell aliases etc.
What I am trying to do is allow users to have different shell settings through the
~/.bash_profile depending on who actually logged in. For example, when Jonathan logs in, I want shell to additionally execute
~/.Jonathan_profile, and for Bob, I want the shell to source
I am not sure, however, if there is a way to tell the account name on the remote machine of a user logged in using SSH.
Any hints are greatly appreciated.