GNU screen for collaboration

| | Comments (2)
GNU Screen is often used for keeping programs running while their user is logged out, but it is also very useful for collaboration when more than one user connects to a session. To do this, "multiuser on" must be set in the session, either in the screenrc file or with : in the session. Then the user who didn't start screen must connect to it with screen -r and the username of the owner of the session and the name of the session like "screen -r nick/31346.pts-15.lion". The name of the session can be found by the owner doing screen -ls or root looking in /var/run/screen/ in the owners session directory where there is a named pipe with the name of the session. The screen binary must be setuid root with chmod u+s and owner root. The session owner must explicitly allow the other users to connect with "addacl otherusernames" either in the screenrc or in the session. Then when both users are connected they have the privileges of the session owner and can see what each other are doing, allowing demonstration of various system tasks or issues.


This is cool ! I think I'll be using this to show my kids how to use their accounts.
(and yes, I can post comments so my account is unstuck :-)

yup, good stuff. I moved it here and added some bits about the serial console. we should clean it up a bit when we have free time.

Leave a comment