I've seen people elevating their tmux shells for convenient root access many times, often leaving the sessions running in the background for a long time.
Doing this makes it very trivial to escalate permissions for anybody that gets a shell to your box with your user.
Instead, you should run
sudo tmux in another session, then do your thing there. This limits access to the tmux service for the root user only, which prevents the privilege escalation path.https://redd.it/1vydtpj
@r_linux
