Your friend can attach with -r and he will be readonly but this is only a convenience, it is not a security feature. If you want to share tmux sessions without giving the other user access to your login you will need to create a separate login running a dedicated tmux server.
On Sun, 13 Dec 2020, 00:35 Nafiz Islam, <[email protected]> wrote: > I wanted to share a live terminal session with my friend through tmux by > creating a socket file, but I noticed that the file needed to be writable > in order to attach to the socket file. Is it possible to implement a > feature such that a read-only socket file can be attached to only if > attaching in read-only mode? > > -- > You received this message because you are subscribed to the Google Groups > "tmux-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/tmux-users/5b9c051e-4c62-4600-b5e4-98d615a8c576n%40googlegroups.com > <https://groups.google.com/d/msgid/tmux-users/5b9c051e-4c62-4600-b5e4-98d615a8c576n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAEdLfcF9xbX6%3DuCJY4mYcMe1sfis%3Ddmm%2BpPnrSNv%3DSGksma4mA%40mail.gmail.com.
