如何剔除linux在线用户
2009-07-24 16:31
260 查看
(1)查询当前登录用户
[root@firewall ~]# finger
Login Name Tty Idle Login Time Office Office Phone
root root pts/0 May 4 23:19 (172.16.7.29)
(2)查询某个登录用户的所有进程
[root@firewall ~]# ps -ef | grep pts/0
root 3140 2070 0 23:19 ? 00:00:00 sshd: root@pts/0
root 3142 3140 0 23:19 pts/0 00:00:00 -bash
root 3195 3142 0 23:24 pts/0 00:00:00 ps -ef
root 3196 3142 0 23:24 pts/0 00:00:00 grep pts/0
(3)干掉登录用户Shell 进程
kill -9 3142
[root@firewall ~]# finger
Login Name Tty Idle Login Time Office Office Phone
root root pts/0 May 4 23:19 (172.16.7.29)
(2)查询某个登录用户的所有进程
[root@firewall ~]# ps -ef | grep pts/0
root 3140 2070 0 23:19 ? 00:00:00 sshd: root@pts/0
root 3142 3140 0 23:19 pts/0 00:00:00 -bash
root 3195 3142 0 23:24 pts/0 00:00:00 ps -ef
root 3196 3142 0 23:24 pts/0 00:00:00 grep pts/0
(3)干掉登录用户Shell 进程
kill -9 3142
相关文章推荐
- 如何剔除Linux在线用户
- 如何剔除linux在线用户
- Linux中如何剔除指定的登陆用户
- linux剔除在线用户
- 剔除在线的linux用户
- Linux下如何移除同时在线的用户
- linux在字符界面中,如何实现多用户多任务?
- 兄弟连Linux在线课堂:第7讲 Linux用户管理
- Linux非root用户如何使用80端口启动程序
- Linux系统下如何查看已经登录用户
- Linux下如何进行SFTP用户权限设置
- linux--redhat 如何修改root用户密码
- linux 如何在root 用户和普通账户间切换
- Linux如何配置ftp服务器、给ftp服务器添加访问用户
- 如何在linux系统的服务器上创建用户,并运行python图形化界面
- linux下如何添加一个用户并且让用…
- Linux用户进程是如何释放内存的[zt]
- 忘记linux用户密码和root密码时,该如何处理
- Linux下查看在线用户
- 求救:linux中,普通用户如何具有home的读写权限