[EMAIL PROTECTED] ~$ su -
Password: 
my_server:~# ps aux | grep ssh
root     10769  0.0  0.5   4656  1372 ?        Ss   Dec24   0:00 /usr/sbin/sshd
root     19531  1.5  0.8   7440  2236 ?        Ss   15:17   0:00 sshd: my_user 
[priv]
my_user  19534  0.7  0.8   7444  2300 ?        S    15:17   0:00 sshd: [EMAIL 
PROTECTED]/0
root     19572  0.0  0.1   1460   488 pts/0    S+   15:17   0:00 grep ssh
my_server:~# kill -9 19531
my_server:~# w
 15:17:57 up 5 days, 19:22,  1 user,  load average: 0.06, 0.01, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
my_server:~# last | head -1
my_user  pts/0        paleo.chiti.org  Fri Dec 29 15:17    gone - no logout 
my_server:~# ps aux | grep [m]y_user
my_user  19534  0.1  0.8   7444  2300 ?        S    15:17   0:00 sshd: [EMAIL 
PROTECTED]/0
my_user  19535  0.1  0.7   3400  1904 pts/0    Ss   15:17   0:00 -bash
my_server:~# 

>From w man page:
w  displays  information  about  the users currently on the machine, and their 
processes.  The header shows, in this order, the current time, how long the 
system has been running, how many users are currently logged on, and the system 
 load  averages for the past 1, 5, and 15 minutes.

Since the parent login session is killed w can't show who was loged but
it still showing how many users are in. You can see who is in by a ps
auxf to see the child sessions:

my_user  19534  0.0  0.9   7608  2312 ?        S    15:17   0:00 sshd: [EMAIL 
PROTECTED]/0
my_user  19535  0.0  0.7   3400  1904 pts/0    Ss   15:17   0:00  \_ -bash
root     19555  0.0  0.3   2620  1008 pts/0    S    15:17   0:00      \_ su -
root     19556  0.0  0.6   2592  1592 pts/0    S    15:17   0:00          \_ -su
root     19722  0.0  0.3   2028   856 pts/0    R+   15:30   0:00              
\_ ps auxf

IMHO this is not a bug nor a security issue, but I'll keep this report
to see more input from experts. Thanks for reporting.

H.

-- 
ghost in the shell?
https://launchpad.net/bugs/77167

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to