That was a great hint. I modified the script to check for $SUDO_UID and it runs like a charm.
Thanks a lot.
After tidying it up, I'll put it on github in case anybody faces similar challenges.
In reply to Re^4: why does perl-suid not mount
by Anonymous Monk
in thread why does perl-suid not mount
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |