Is it possible to attach to read only session?

893 views
Skip to first unread message

Nafiz Islam

unread,
Dec 12, 2020, 7:35:32 PM12/12/20
to tmux-users
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?

Nicholas Marriott

unread,
Dec 13, 2020, 2:17:12 AM12/13/20
to Nafiz Islam, tmux-users
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, <nafiz.i...@gmail.com> 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 tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/5b9c051e-4c62-4600-b5e4-98d615a8c576n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages