Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在tmux我只有 2 个组,而不是预期的 5 个:
tmux
$ groups username sudo staff website1 website2 $ tmux $ groups username sudo
为什么会这样,我该如何解决?
也许您的 tmux 服务器在您被添加到其他组之前已启动。服务器进程及其启动的任何进程将仅具有启动服务器时的权限。
您可以通过关闭所有会话并启动新服务器来解决此问题。一旦你退出了任何你关心的在 tmux 会话中运行的程序,你就可以使用它tmux kill-server来确保旧的服务器进程结束。然后,当您再次运行 tmux 时,它会自动启动一个新服务器,该服务器应该具有您当前的所有权限。
tmux kill-server