【问题标题】:Cannot be root from a tmux session on a remote machine不能从远程机器上的 tmux 会话中成为 root
【发布时间】:2023-04-10 16:39:02
【问题描述】:

当我登录到网关节点时,我可以成为 root,但在我的 tmux 会话运行时不能。我可以 ssh 到其他机器并成为 root,但不是运行 tmux 的机器。这个问题似乎与我们生产中的网关节点隔离。

在 tmux 中

user@gateway:~$ sudo su
[sudo] password for user:
user is not in the sudoers file.  This incident will be reported.

没有 tmux

user@gateway:~$ sudo su
[sudo] password for user:
root@gateway:/home/user#

【问题讨论】:

    标签: shell sudo tmux


    【解决方案1】:

    我有 tmux 未附加的 tmux 会话需要关闭。

    【讨论】:

      猜你喜欢
      • 2022-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-10
      相关资源
      最近更新 更多