I used to leave my
byobu sessions detached on a server. I want to lock the session to prevent other users (root account) accessing my session.
Is this possible?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
GNU screen (one backend that byobu can use, along with
tmux) has the lockscreen functionality. Have a look at the man page to see what it does. The default binding is
With regard to your trying to lock root out, it's rather pointless. What you can try is to find a locking program that let you set a password and hope that root doesn't know about it.
Byobu now also supports a
tmux backend, in addition to
tmux, you can issue the
lock-session (to lock the entire session and all attached clients), or the
lock-client command, to just lock the current client.