You can also use a multi-user screen session. The screen utility can be used to view/use a single session with multiple users:
- Start a new screen session with a specific name:
screen -S sessionname
- Open the session on another terminal with
screen -x sessionname
You can also do this with different users on the same machine. To do this:
- Make screen setuid using
chmod u+s /usr/bin/screen
- Run screen with
screen -s sessionname
- Enable multiuser mode with ctrl+a
:multiuser on
- Allow a different user to connect with ctrl+a
:addacl guestuser
- As the guest user, use
screen -x hostingUserName/sessionname