I want to kick off a user such as “bob” on a Linux box which I managed remotely. How to do this?
我想在我远程管理的Linux机器上启动诸如“ bob”之类的用户。 这该怎么做?
bob may log on the Linux box by various ways:
bob可以通过多种方式登录Linux系统:
Log on the screen on the Linux box (locally) with a X server.
使用X服务器在Linux框上(本地)登录屏幕。
Log on by
ssh -X
with X windows.使用X窗口通过
ssh -X
登录。Started a vnc session and log on it.
启动了vnc会话并登录。
I am managing the Linux box remotely via a ssh session (I have root password).
我正在通过ssh会话远程管理Linux机器(我具有root密码)。
Just do this:
只是这样做:
# killall -u bob
It will kill all processes that user bob owns.
它将杀死用户bob拥有的所有进程。
Check the manual of killall for more information: killall manual.
有关更多信息,请查看killall手册 : killall manual 。
翻译自: https://www.systutorials.com/how-to-kick-off-a-user-on-a-linux-box/