docs/modules/howtos/pages/share_tmux_session.adoc
Michal Konecny 1d458e6d8a Migrate howto repository to infra docs
It doesn't make much sense to have separate guides outside infra documentation.
So let's migrate https://pagure.io/fedora-infra/howtos to infra docs.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-09-18 17:06:59 +02:00

913 B
Raw Permalink Blame History

It can be handy to share a tmux session between different user accounts, for example to allow a someone to look over your shoulder while you work on something.

To do this, we need to have a folder with group permission shared between the two persons.

In the Fedora infrastructure we can easily use the fi-apprentice group for this.

So we have created the folder /var/tmux/, which is writable for both the fi-apprentice and sysadmin groups

You can then create a tmux session using:

tmux -S /var/tmux/<socket name> new -s <session name>

(The socket and session names can be different, but they dont have to)

And the other person(s) can join it using:

tmux -S /var/tmux/<socket name> att -t <session name>

Once the person who created the shared session stops it, the people who have joined will be kicked out of the session as well.