From: Amitai Schleier Date: Sun, 1 Sep 2019 14:39:48 +0000 (-0400) Subject: Response: am trying sudo X-Git-Tag: 3.20200202.3~50 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/31d5769ce798a471edae188a2bb423f7bb5fa432 Response: am trying sudo --- diff --git a/doc/bugs/ikiwiki-mass-rebuild_has_probably_never_worked_portably.mdwn b/doc/bugs/ikiwiki-mass-rebuild_has_probably_never_worked_portably.mdwn index 3bae33ada..867b99566 100644 --- a/doc/bugs/ikiwiki-mass-rebuild_has_probably_never_worked_portably.mdwn +++ b/doc/bugs/ikiwiki-mass-rebuild_has_probably_never_worked_portably.mdwn @@ -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]]