Response: am trying sudo

master
Amitai Schleier 2019-09-01 10:39:48 -04:00
parent 3d769344a8
commit 31d5769ce7
1 changed files with 6 additions and 0 deletions

View File

@ -138,3 +138,9 @@ The `-m` may be overzealous. I have some sites running as users with `/sbin/nolo
>>> and thorough option might be to make the run-as-user command
>>> configurable, with some strong suggestions and warnings. Thoughts?
>>> --[[schmonz]]
>>>> Here's what I'm experimenting with now:
>>>>
>>>> my $ret=system("sudo", "-n", "-s", "-u", $user, "/bin/sh", "-c", "--", "$0", "--nonglobal", @ARGV);
>>>>
>>>> --[[schmonz]]