Skip to content

Instantly share code, notes, and snippets.

@scemama
Last active August 29, 2015 14:14
Show Gist options
  • Save scemama/874811e05aa1580e8741 to your computer and use it in GitHub Desktop.
Save scemama/874811e05aa1580e8741 to your computer and use it in GitHub Desktop.
Multi-user screen configuration
user1@localhost $ # Set the setuid bit on the executable
user1@localhost $ sudo chmod u+s /usr/bin/screen
user1@localhost $ ls -l /usr/bin/screen
-rwsr-xr-x 1 root screen 360952 Jan 18 2038 /usr/bin/screen
user1@localhost $ # Update your .screenrc
user1@localhost $ cat .screenrc
multiuser on
acladd bgates,lellison,gvanrossum,dknuth,dnorman
user1@localhost $ # User 1 starts a screen session
user1@localhost $ screen
user2@localhost $ # User 2 connects to the screen session
user2@localhost $ screen -r user1/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment