I'm running tmux on my servers and when configuring things I like to just su into root and take care of things. Is there a possibilty to log out root automatically after I detach the tmux session?
You could set this in
The problem with this is that it requires a compatible shell.
An alternative would be Timeoutd, but I don't know where it's available (debian-based seems to have it, rhel-based doesn't).
TMUX is designed to survive unintentional and intentional disconnects, as you already are aware.
You could have a
Alternatively, have it use