Sharing a screen session
screen first needs to be set SUID (this has security implications).
Toggle line numbers
1 chmod u+s /usr/bin/screen
2 chmod 755 /var/run/screen
Now create the screen session as your desired user, and do:
- Ctrl+a, ":multiuser on", hit enter
- Ctrl+a, ":acladd $user" (where $user is the username to share with), hit enter
Another user can connect to the screen session with:
Toggle line numbers
1 screen -x $session_name
Source: LinuxGazette: A 'revisited' guide to GNU Screen