Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I could not find docs on how tmux clients and servers commmunicate. I would like to use tmux but it cannot be deployed if it only uses sockets for this. fifo's or pipes would be ok as long as fifo's are created in dir specfied by me. Any ideas ?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

tmux is safe. It uses Unix domain sockets, which are located within the filesystem (specifically, /var/run/tmux/tmux-$UID) and use standard Unix file permissions: other users cannot connect to a Unix socket just like they cannot read a file.

# tree -pug /var/run/tmux
/var/run/tmux
└── [drwx------ grawity  utmp    ]  tmux-1004
    └── [srwxrwx--- grawity  grawity ]  default

You can specify your own path using tmux -S path/to/socket.


FIFOs cannot be used for this purpose since they are unidirectional, so you would need two of them for every connected client, and you gain no advantages over Unix sockets.

share|improve this answer

Your Answer

 
discard

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.