version=pmwiki-2.2.130 ordered=1 urlencoded=1 agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36 author=mistera charset=UTF-8 csum= ctime=1621045628 host=204.111.39.57 name=Tmux.Share rev=1 targets= text=Read%0ahttps://www.howtoforge.com/sharing-terminal-sessions-with-tmux-and-screen#sharing-terminal-sessions-between-two-different-accounts%0a%0a%0aAssuming a group called "sharegroup", a socket called "shareds", and a sessionname called "shared",%0a%0a%0a%0a%0a%0aTo start a new session to share, do:%0a%0a%0a||border=0 width=80%25 bgcolor=lightgrey%0a||@@$ tmux -S /tmp/shareds new -s shared@@ ||%0a||border=0 width=80%25 bgcolor=lightgrey%0a||@@$ chgrp sharegroup /tmp/shareds@@ ||%0a||border=0 width=80%25 bgcolor=lightgrey%0a||@@$ chmod g+rwx /tmp/shareds@@ ||%0a%0a%0aTo attach to the session, if it is already running, do:%0a%0a||border=0 width=80%25 bgcolor=lightgrey%0a||@@$ tmux -S /tmp/shareds attach -t shared@@ ||%0a%0aplease note that only members of the group "sharedgroup" may access the tmux session. You may have to add users to the group.%0a time=1621045628 author:1621045628=mistera diff:1621045628:1621045628:=1,27d0%0a%3c Read%0a%3c https://www.howtoforge.com/sharing-terminal-sessions-with-tmux-and-screen#sharing-terminal-sessions-between-two-different-accounts%0a%3c %0a%3c %0a%3c Assuming a group called "sharegroup", a socket called "shareds", and a sessionname called "shared",%0a%3c %0a%3c %0a%3c %0a%3c %0a%3c %0a%3c To start a new session to share, do:%0a%3c %0a%3c %0a%3c ||border=0 width=80%25 bgcolor=lightgrey%0a%3c ||@@$ tmux -S /tmp/shareds new -s shared@@ ||%0a%3c ||border=0 width=80%25 bgcolor=lightgrey%0a%3c ||@@$ chgrp sharegroup /tmp/shareds@@ ||%0a%3c ||border=0 width=80%25 bgcolor=lightgrey%0a%3c ||@@$ chmod g+rwx /tmp/shareds@@ ||%0a%3c %0a%3c %0a%3c To attach to the session, if it is already running, do:%0a%3c %0a%3c ||border=0 width=80%25 bgcolor=lightgrey%0a%3c ||@@$ tmux -S /tmp/shareds attach -t shared@@ ||%0a%3c %0a%3c please note that only members of the group "sharedgroup" may access the tmux session. You may have to add users to the group.%0a host:1621045628=204.111.39.57