Sharing a screen session

screen first needs to be set SUID (this has security implications).

   1 chmod u+s /usr/bin/screen
   2 chmod 755 /var/run/screen

Now create the screen session as your desired user, and do:

  1. Ctrl+a, ":multiuser on", hit enter
  2. Ctrl+a, ":acladd $user" (where $user is the username to share with), hit enter

Another user can connect to the screen session with:

   1 screen -x $session_name

Source: LinuxGazette: A 'revisited' guide to GNU Screen


CategoryCheatSheet

SamatsWiki: CheatSheet/GNUScreen (last edited 2009-11-05 05:40:06 by SamatJain)