From 31d5769ce798a471edae188a2bb423f7bb5fa432 Mon Sep 17 00:00:00 2001 From: Amitai Schleier Date: Sun, 1 Sep 2019 10:39:48 -0400 Subject: Response: am trying sudo --- .../ikiwiki-mass-rebuild_has_probably_never_worked_portably.mdwn | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/bugs') 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]] -- cgit v1.2.3