Hello again morthed,
You can ssh from the main script as root then in apply the commands that you want, close the session and continue as normal user.
Check also the updated proposed solution that I just added.
Hope this helps, BR.
In reply to Re^3: Running a perl script with root, changing to another user and then back to root?
by thanos1983
in thread Running a perl script with root, changing to another user and then back to root?
by morthed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |