From: Mark Wooding Date: Sun, 2 Sep 2012 16:48:58 +0000 (+0100) Subject: startup.sh: Run screen(1) as admin, sudo(8) to ircbot user. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/ircbot/commitdiff_plain/e5b8f02ecbf7e5fcfe14c1cfc91ca7fa93bc9191 startup.sh: Run screen(1) as admin, sudo(8) to ircbot user. The `screen' package doesn't come setuid-root any more (almost certainly for good reason) and so can't host multiuser sessions. Don't even try. --- diff --git a/startup.sh b/startup.sh index 392f6c8..3d31025 100755 --- a/startup.sh +++ b/startup.sh @@ -2,6 +2,6 @@ set -e screen -d -m -S bots -screen -X -S bots multiuser on -screen -X -S bots acladd mdw,root -screen -X -S bots screen -t blight ./blight-startup.tcl distorted +screen -X -S bots \ + screen -t blight \ + sh -c 'sudo -u ircbot ./blight-startup.tcl distorted; sleep 60'