redhat linux 剔除用户

redhat linux 剔除用户,第1张

概述查看机器中登陆的用户 [[email protected]~]# w 16:29:02 up 2 days, 2:35, 5 users, load average: 0.03, 0.05, 0.01USER TTY FROM [email protected] IDLE JCPU PCPU WHATroot pts/1 查看机器中登陆的用户

[[email protected]~]# w

16:29:02 up 2 days,2:35,5 users,load average: 0.03,0.05,0.01USER     TTY      FROM              [email protected]   IDLE   Jcpu   Pcpu WHATroot     pts/1    :0.0             Tue15    2days  1:44   0.04s -bashroot     pts/2    :0.0             Tue15   46:42m  0.05s  0.05s bashroot     pts/3    :0.0             Tue15    2days  0.02s  0.02s bashroot     pts/4    172.20.52.114    14:17   58:48   0.16s  0.03s sqlplusroot     pts/5    172.20.52.114    15:31    0.00s  0.03s  0.00s w我把pts/1踢掉(只有root才能去踢掉用户)[[email protected] ~]# pkill -kill -t pts/1[[email protected] ~]# pkill -kill -t pts/2[[email protected] ~]# pkill -kill -t pts/3查看是不是踢掉[[email protected] ~]# w 16:34:16 up 2 days,2:40,2 users,load average: 0.00,0.02USER     TTY      FROM              [email protected]   IDLE   Jcpu   Pcpu WHATroot     pts/4    172.20.52.114    14:17    1:04m  0.16s  0.03s sqlplusroot     pts/5    172.20.52.114    15:31    0.00s  0.03s  0.00s wroot可以踢掉其他用户包括自己

查看机器中登陆的用户

[[email protected]~]# w

16:29:02 up 2 days,0.01USER     TTY      FROM              [email protected]   IDLE   Jcpu   Pcpu WHATroot     pts/1    :0.0             Tue15    2days  1:44   0.04s -bashroot     pts/2    :0.0             Tue15   46:42m  0.05s  0.05s bash

root pts/3 :0.0 Tue15 2days 0.02s 0.02s bash

root pts/4 172.20.52.114 14:17 58:48 0.16s 0.03s sqlplus

root pts/5 172.20.52.114 15:31 0.00s 0.03s 0.00s w

我把pts/1踢掉(只有root才能去踢掉用户)

[[email protected] ~]# pkill -kill -t pts/1

[[email protected] ~]# pkill -kill -t pts/2

[[email protected] ~]# pkill -kill -t pts/3

查看是不是踢掉

[[email protected] ~]# w

16:34:16 up 2 days,0.02

USER TTY FROM [email protected] IDLE Jcpu Pcpu WHAT

root pts/4 172.20.52.114 14:17 1:04m 0.16s 0.03s sqlplus

root pts/5 172.20.52.114 15:31 0.00s 0.03s 0.00s w

root可以踢掉其他用户包括自己    查看端口占用    lsof  -i :22
总结

以上是内存溢出为你收集整理的redhat linux 剔除用户全部内容,希望文章能够帮你解决redhat linux 剔除用户所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1024663.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存