I was doing a test to check to see if the /etc/limits was working to
limit logins, (which didn't work). I created a user named "test".
using putty from a windows box, i logged in three times (ulimit was 2)
via ssh2. I was disappointed to see that it let me, but then 'exit' 'ed
out of each session.. after which i saw it still showed the user in the
"who" output.. utmp (via last) says the user is out.. but i can't correct
this. First i tried to "/etc/rc.d/rc.sshd restart" didn't work.
then i tried "/etc/rc.d/rc.sshd stop", "/etc/rc.d/rc.sshd start". didn't
work.
then i tried "init 1", "init 3". I thought that was supposed to boot every
one off the system.. but no, it didn't work either.. Anyway i can get
rid of this ghost user, without rebooting the system?
( I have a reboot scheduled next week, and this doesn't seem to be
effecting the system at all, additional pts/ just goes around the one
taken...)
Thanks for your help,
alex
PS.. Sorry for the lenght, relevant command output below:
root@aeshells.com:~# who
alex pts/1 May 15 23:40 (athlon.aeshells.org)
test pts/2 May 15 20:17
root@aeshells.com:~# last -n 10
batboyz pts/2 c211-28-160-120. Sat May 15 23:55 - 23:59 (00:03)
alex pts/1 athlon.aeshells. Sat May 15 23:40 still logged in
bunjoy pts/0 210.23.214.189 Sat May 15 23:40 - 00:06 (00:25)
root tty1 Sat May 15 23:40 - 23:55 (00:15)
alex pts/0 athlon.aeshells. Sat May 15 23:38 - 23:39 (00:00)
alex pts/0 athlon.aeshells. Sat May 15 23:37 - 23:38 (00:00)
alex tty1 Sat May 15 23:37 - 23:39 (00:02)
test pts/2 athlon.aeshells. Sat May 15 23:36 - 23:36 (00:00)
test pts/1 athlon.aeshells. Sat May 15 23:35 - 23:36 (00:00)
test pts/0 athlon.aeshells. Sat May 15 23:35 - 23:36 (00:00)
root@aeshells.com:~# ps -ef | grep ssh
root 26308 1 0 May15 ? 00:00:00 /usr/sbin/sshd
root 26364 26308 0 May15 ? 00:00:00 sshd: alex [priv]
alex 26376 26364 0 May15 ? 00:00:00 sshd: alex@pts/1
--
-Jeromy