So the program cannot determine what the $home of the real user may be...sudo normally sets $SUDO_UID and $SUDO_USER to the calling (original) user, which you could query in your script.
In reply to Re^3: why does perl-suid not mount
by Anonymous Monk
in thread why does perl-suid not mount
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |