Change “xterm*)” to “xterm*|screen*)” in /etc/bashrc for the PROMPT_COMMAND check
To allow another user to view your screen:
$ :multiuser on $ :acladd USERNAME $ :aclchg USERNAME [+-r][+-w][+-x] "#?" $ :acldel USERNAME
If you want to grant read-only permissions do:
$ :multiuser on $ :acladd USERNAME $ :aclchg USERNAME -wx] "#?"
To view another users screen, /usr/bin/screen must have suid root permissions.
sudo chmod +s /usr/bin/screen sudo chmod 755 /var/run/screen
If that is done, you can open the session by
screen -r USER/PID.TTY.HOSTNAME
$ screen -p <TERMINALNAME> -X stuff "blah^M";