If you don't trust the environment variable SUDO_USER, you could also walk the process tree upward until you find your answer.
--MidLifeXis
In reply to Re: Obtaining userid from script called by sudo and other scripts
by MidLifeXis
in thread Obtaining userid from script called by sudo and other scripts
by njetson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |