.tmux: The user in the status bar is stuck at root
The problem
I just pulled the latest commit from the master
branch. Then I found that if I execute any sudo
-prefixed command (such as sudo whoami
), the user in the status bar will remain root!
, even if I’ve returned to a standard user.
My setup
$ uname -a
Linux as-server 5.8.7-arch1-1 #1 SMP PREEMPT Sat, 05 Sep 2020 12:31:32 +0000 x86_64 GNU/Linux
$ tmux -V
tmux 3.1b
$ ssh -V
OpenSSH_8.3p1, OpenSSL 1.1.1g 21 Apr 2020
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 81 (40 by maintainers)
Commits related to this issue
- Gpakosz master (#2) * improved status line rendering, fixes #419 (2) - do not apply attr to spacers - fixed attr for last window, window with activity and window with bell * added support for ... — committed to ulken94/.tmux by ulken94 3 years ago
- Merge remote-tracking branch 'upstream/master' * upstream/master: (46 commits) updated _username() in when the ssh client doesn't support %r in ProxyCommand updated _ssh_or_mosh_args() improved... — committed to tunght13488/.tmux by tunght13488 3 years ago
- reworked pane / tty introspection, fixes #403, fixes #458 - renamed _tty_info() to _pane_info() - pass both #{pane_pid} and #{pane_tty} to _pane_info() - when inspecting ps output, walk down from #{p... — committed to cgxxv/tmuxc by gpakosz 3 years ago
- reworked pane / tty introspection, fixes #403, fixes #458 - renamed _tty_info() to _pane_info() - pass both #{pane_pid} and #{pane_tty} to _pane_info() - when inspecting ps output, walk down from #{p... — committed to cgxxv/tmuxc by gpakosz 3 years ago
- reworked pane / tty introspection, fixes #403, fixes #458 - renamed _tty_info() to _pane_info() - pass both #{pane_pid} and #{pane_tty} to _pane_info() - when inspecting ps output, walk down from #{p... — committed to ooosssososos/.tmux by gpakosz 3 years ago
- reworked pane / tty introspection, fixes #403, fixes #458 - renamed _tty_info() to _pane_info() - pass both #{pane_pid} and #{pane_tty} to _pane_info() - when inspecting ps output, walk down from #{p... — committed to farhadkarimi/.tmux by gpakosz 3 years ago
- reworked pane / tty introspection, fixes #403, fixes #458 - renamed _tty_info() to _pane_info() - pass both #{pane_pid} and #{pane_tty} to _pane_info() - when inspecting ps output, walk down from #{p... — committed to Rafiot/.tmux by gpakosz 3 years ago
- reworked pane / tty introspection, fixes #403, fixes #458 - renamed _tty_info() to _pane_info() - pass both #{pane_pid} and #{pane_tty} to _pane_info() - when inspecting ps output, walk down from #{p... — committed to ralphie02/.tmux by gpakosz 3 years ago
Thanks! I’ll try the branch when the problem occur again and will let you know
It happened several times recently. Unfortunately, I still don’t know what specific steps are causing it. It’s really cunning… 😥
But anyway, I’ll still pay attention to it.
I just switched to
gh-403
. I’ll report back here if this problem happens again.I pushed the
gh-403
branch which may solve this issue.Please keep me posted!
Ok, I’ll pay attention next time it happens.
Okay, I’ll pay attention. If I encounter it again, I’ll report back here.