I want to check if I am using elevated user rights, like running su another_user
and seeing my original user name / id.
All I found when researching that topic is either hardcode my own username somewhere, or examples for root user only (id=0).
I think zsh
has a variable for that: $DEFAULT_USER
, but it's not working in bash.