Pairing with Separate Accounts and Sockets
Using tmux’s support for sockets, you can create sessions that multiple users can connect to with ease.
To test this out, create two new user accounts for the session: one called “ted” and another named “barney.”
| tmux@puzzles$ sudo adduser ted |
| tmux@puzzles$ sudo adduser barney |
Next, create the “tmux” group and the /var/tmux folder that will hold the shared sessions.
| tmux@puzzles$ sudo addgroup tmux |
| tmux@puzzles$ sudo mkdir /var/tmux |
Next, change the group ownership of the /var/tmux folder so that the tmux group has access:
| tmux@puzzles$ sudo chgrp tmux /var/tmux |
Then alter the permissions on the folder so that new files will ...
Get tmux 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.