Skip to content

Instantly share code, notes, and snippets.

@pono
Forked from gumayunov/gist:2158147
Last active December 10, 2015 00:19
Show Gist options
  • Save pono/4350182 to your computer and use it in GitHub Desktop.
Save pono/4350182 to your computer and use it in GitHub Desktop.
Pair programming with screen with .screenrc and suid permissions.

User john (on host):

john $ cat > ~/.screenrc <<EOF
    multiuser on
    acladd mike
    EOF

john $ sudo chmod u+s /usr/bin/screen 
john $ sudo chmod 755 /var/run/screen

john $ screen -S sessionname

User mike (after login on john machine):

screen -rx john/sessionname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment