Linux - Reddit: post #43076 — TG.ME

PSA: do not run sudo su inside a tmux window!

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
Reddit
From the linux community on Reddit
Explore this post and more from the linux community
August 26, 2026 21