I use screen, and sometimes I'm forced to share it. How I can manage the active connections to my screen?
I would like to monitor connections and users connected, where they are and what they do. Also I would like to be able to kick them out.
Is this possible?
thanks.
It's so simple!
Press
Ctrl-A *
to see the list of connected users to your screen session as well as the screen they're on.The
acldel
command can be used to remove another user's rights to your screen session - this will kick him out as well.You can tell which screen processes are linked to
tty
s by looking at the output oflsof
: if a screen client process is connected to the screen interaction processes, then they will share tty devices. So for instance, with:We see that there is one interaction scree process, 2298, which has /dev/ttyp3 open. Process 2299 also has this tty open, but process 1979 does not access any tty. So you can infer from this output which child processes are talking to which interaction processes.