When I SSH into a Linux box, I want to have the
/etc/profile file save the results of the
whoami command to a global environment variable.
If I were to go root with the command
sudo su -, I do not want that command to run again when going root. I want it to use the result of
whoami with my regular username from before I went root, and need to access that variable as the root user even though it will run the
/etc/profile file again when I go root.
What can I do to only run that command once in the