Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for something similar to the screen -x of gnu screen for Linux

share|improve this question

You can attach to tmux sessions owned by different users by giving the correct permissions and doing the following:


tmux -S /tmp/team


tmux -S /tmp/team attach

For example, to set the permissions for all users:

chmod 777 /tmp/team

share|improve this answer
chmod 777: nonononono! Never ever run chmod 777. It is practically never required! Not even for "testing purposes". If the file is readable, then it's readable. If it's writable by the user or group that need to write to it, then it's writable. There is absolutely zero need to give everyone write permissions, and forgetting to chmod it back to something sane is exactly how multinationals get hacked. Just don't do it. Ever. I wrote an introduction of Unix permissions. Please read it! – Carpetsmoker Mar 13 at 6:07
In this case, just put the users in the same group and chgrp it to that. – Carpetsmoker Mar 13 at 6:08

It will work for you by simply attaching the same session, with no special switch.

One of the cool advantages of tmux for shared sessions is that it automatically adjusts the pane sizes to the smallest actual terminal size of all of the currently connected clients.

share|improve this answer
I.e. just run tmux attach, or tmux attach -t 4 to attach to session 4, etc. – Gilles Sep 14 '10 at 18:13
just beware that you can't share tmux session between different users – number5 Feb 4 '11 at 4:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.