linux 用户管理

断开某个用户的连接
who 查看用户连接
 

断开远程用户
fuser -k /dev/pts/x

x为who下看到的这个用户的pts序号

断开本地用户

fuser -k /dev/ttyx

x为who查看到的tty序号

原文地址:https://www.cnblogs.com/rspb/p/5718889.html