Screen tips: more than one user in a session

Translation of the original in Catalan. Read it in: CatalàCastellano

When I discovered the screen command I found it extremely powerful. Very soon I fell in love with it, what I would never have thought is that such interesting things as those explained in the article could be done: Using screen for remote interaction (local). For example, we can leave an open screen session and access it from more than one client simultaneously. Both in reading mode, just seeing what is there, and in writing mode, being able to modify in real time what the screen virtual terminal contains simultaneously from more than one place. As you can imagine this is ideal, for example, to be able to show someone how to do something.

Summary of commands to launch a screen session and connect to it remotely in reading and writing mode:

1. Sessió principal: Cal que el binari <em>/usr/bin/screen</em> estigui <em>setuid root</em>.
2. Sessió principal: llencem <em>screen</em>: screen -S nom_sessio
3. Sessió secundària: connectem al PC de la 'sessió principal' amb SSH.
4. Sessió principal: Crt-a :multiuser on
5. Sessió principal: Crt-a :acladd loginID
6. Sessió secundària: screen -x usuari/nom_sessio

Moreover, as if that were not enough, we can also record the session with all the cursor movements through screen itself without having to use commands, such as script.

Summary of commands to record a session with screen:

screen -S nom_sessio -L
o bé quan estem en una sessió:
Crt-a H

It should be remembered that, just as happens with the script command, screen does not support the ANSI escape characters that allow colours to be shown on the screen either. Therefore, if our ls uses colours it will not work, we have to do this to solve it: alias ls='ls --color=none'.