What tmux version? I have a feeling I fixed something about changing the socket 
perms

-------- Original message --------
From: c...@free.fr 
Date: 29/03/2014  00:21  (GMT+00:00) 
To: Nicholas Marriott <nicholas.marri...@gmail.com> 
Cc: tmux-users@lists.sourceforge.net 
Subject: Re : Re: Permissions on Sessions via Socket's permission -- 20140328 
 
Thank very much Nicholas for your prompt and enlightning reply.
Though i'm sure any technical issues can be solved in due time 
(like, in the case of sockets then if one is not enough, how about
two? so we can split function among them... Well i'm not developer
over here and lack the required background for scrutiny
so i drop my search here)

The fact is, though without the convenience of following the rights
pattern of the OS, the -r option you gave me works fine for my use case.
Why?
Well, i just tested and :
  . with "tmux attach -r" i can get into the session
  . but i cannot interact with the apps in that session
  . and the only command i could issue towards the tmux server was to detach
  ... and i guess, not tested fully only with the creator's keybindings
  . and no access to command mode (default ":") or other binding (not even "?" 
!)

Going back to Beth and Bob's story, I see a solution this way :
1. Beth (or the server'a admin) creates a dumb user BILL in GUSERS
    BILL login shell has to be something along the lines of :
    /bin/tmux attach -r 

2. Bob will then connect as BILL and, upon loging in, be thrown right into
  the current session... read-only so that he can only watch or leave.
  
I still saw a problem : as BILL detaches from the session, tmux restores the
permission flags for the socket! so BILL cannot re-attach if session opened
by BETH...
It might be solved by adding another layer of scripting but am I not missing
some other crucial option that would make it some much more... you know, 
palatable.

However this can go, I'm already satisfied and happy with your answer.
Have a nice and peaceful time.

JClu
20140329 

----- Nicholas Marriott <nicholas.marri...@gmail.com> wrote :
> Both read and write permission is needed on the socket to attach and
> this cannot be changed.
> 
> You can attach with -r (tmux attach -r) to attach readonly which is a
> convenience to prevent accidental interference.
> 
> Do not
------------------------------------------------------------------------------
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to