[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] RaQ3i: Admins witch are "still logged in"



What I do is to kill the bash process of every user. Usually kill -10
<bashPID>
Sometimes it's necesary to kill -9
but it works.

The second option, is to install autolog. Look for autolog on the net.
It's very simple to install and very useful.

Urs Weiss - Asenis wrote:
> 
> After i had some broken connections (most with ssh) i found some admin users
> witch are "still logged in" ==> see below.
> 
> [root@www admin]# who
> admin    pts/0    Apr  3 15:32 (gw.domain.ch)
> admin    pts/1    Apr  5 15:55 (gw.domain.ch)
> admin    pts/3    Apr  5 11:06 (gw.domain.ch)
> admin    pts/4    Mar 16 10:32 (gw.domain.ch)
> admin    pts/5    Apr  5 13:46 (gw.domain.ch)
> 
> [root@www admin]# last -25
> admin    pts/1        123.456.78.90     Thu Apr  5 15:55   still logged in
> ...
> admin    pts/5        123.456.78.90     Thu Apr  5 13:46   still logged in
> admin    pts/3        123.456.78.90     Thu Apr  5 11:06   still logged in
> ...
> admin    pts/0        123.456.78.90     Tue Apr  3 15:32   still logged in
> ...
> 
> I tried to see his PID's to kill them:
> [root@www admin]# ps -u admin
> unrecognized option or trailing garbage
> usage:  ps -acehjlnrsSuvwx{t<tty>|#|O[-]u[-]U..} \
>            --sort:[-]key1,[-]key2,...
>            --help gives you this message
>            --version prints version information
> 
> When i use the same command with root, it works:
> [root@www admin]# ps -u root
> USER       PID %CPU %MEM  SIZE   RSS TTY STAT START   TIME COMMAND
> No processes available.
> 
> [root@www admin]# ps --version
> procps version 1.01
> 
> Somone knows what kind of problem it could be? Or an other way to kill the
> "still logged in"-users.
> 
> Thanks for you help
> Urs Weiss
> 
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users