]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Response: am trying sudo
authorAmitai Schleier <schmonz-web-ikiwiki@schmonz.com>
Sun, 1 Sep 2019 14:39:48 +0000 (10:39 -0400)
committerAmitai Schleier <schmonz-web-ikiwiki@schmonz.com>
Sun, 1 Sep 2019 14:39:48 +0000 (10:39 -0400)
doc/bugs/ikiwiki-mass-rebuild_has_probably_never_worked_portably.mdwn

index 3bae33ada7140200fea6f2335b0a91be58e6f146..867b99566ca29b5f64d2b2c944d5fff099e2a4ac 100644 (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]]