Share

Read

https://www.howtoforge.com/sharing-terminal-sessions-with-tmux-and-screen#sharing-terminal-sessions-between-two-different-accounts

Assuming a group called "sharegroup", a socket called "shareds", and a sessionname called "shared",

To start a new session to share, do:

||border=0 width=80%25 bgcolor=lightgrey

||$ tmux -S /tmp/shareds new -s shared ||

||border=0 width=80%25 bgcolor=lightgrey

||$ chgrp sharegroup /tmp/shareds ||

||border=0 width=80%25 bgcolor=lightgrey

||$ chmod g+rwx /tmp/shareds ||

To attach to the session, if it is already running, do:

||border=0 width=80%25 bgcolor=lightgrey

||$ tmux -S /tmp/shareds attach -t shared ||

please note that only members of the group "sharedgroup" may access the tmux session. You may have to add users to the group.