Share Session with Two Different Users
Client User being loislane initiates the tmux session,
Code Block | ||
---|---|---|
| ||
tmux -S /tmp/tmux-loislane attach -t shared |
This will create a file which tmux refers to as a socket for connecting called tmp/tmux-loislane and only usable by Lois. Next Lois decides to give Clark access. He relays to her his user name clarkkent. Using ACLs Lois grants Clark access,
Code Block | ||
---|---|---|
| ||
setfacl -m u:tinpham:rw /tmp/tmux-loislane |
Clark on his console then connects to the socket file,
Code Block | ||
---|---|---|
| ||
tmux -S /tmp/tmux-loislane attach -t shared |
The result will be that both Clark will see Lois' session and also be able to type in it too.
Disconnecting Properly from a Session
...
Reattaching to a Session
...
Research
Solution at bottom takes group approach to tmux - http://www.linuxonline.ca/?q=node/397
Good intro - http://www.linuxonline.ca/?q=node/397
Another good intro with some background - http://spin.atomicobject.com/2012/01/28/less-perplexing-terminal-multiplexing-with-tmux/