chiark
/
gitweb
/
~mdw
/
ircbot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ad47374
)
startup.sh: Run screen(1) as admin, sudo(8) to ircbot user.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 2 Sep 2012 16:48:58 +0000
(17:48 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 2 Sep 2012 16:48:58 +0000
(17:48 +0100)
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.
startup.sh
patch
|
blob
|
blame
|
history
diff --git
a/startup.sh
b/startup.sh
index 392f6c87be0fc2b13914fa75b884d15e934f7355..3d3102570cba1c731e1cbff8b01d4988cdeb506c 100755
(executable)
--- a/
startup.sh
+++ b/
startup.sh
@@
-2,6
+2,6
@@
set -e
screen -d -m -S bots
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'