+ -
当前位置:首页 → 问答吧 → 远程用户管理的问题

远程用户管理的问题

时间:2003-08-25

来源:互联网

我怎样可以把登录到我机器上的用户踢出去?登录方式是telnet。

作者: ziyouwa   发布时间: 2003-08-25

把要踢掉的帐号的bash进程给kill掉,应该可以吧!
没试过,不保证管用!

作者: sunyb   发布时间: 2003-08-25

杀掉他的登录shell

看看我的登录踢出过程:

>$ ssh sambaacl
Linux sambaacl 2.4.20 #1 Wed Jun 25 09:46:28 CST 2003 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Aug 26 01:02:57 2003 from fileserver.zfcpa.com
gaochao@sambaacl:~$ ps aux|grep bash
gaochao 1001 0.5 0.3 2364 1420 pts/0 S 04:47 0:00 -bash
gaochao 1005 0.0 0.1 1288 420 pts/0 R 04:47 0:00 grep bash
gaochao@sambaacl:~$ kill -9 1001
Connection to sambaacl closed.
>$

作者: achaoge   发布时间: 2003-08-25