Re: who sees to many users

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

 



Gregory Woodbury wrote:
> On Wed, Apr 07, 2004 at 09:22:02PM +0100, Andy Green wrote:
> > On Wednesday 07 April 2004 21:19, Rick Stevens wrote:
> > > Gerrit wrote:
> > > > gerrit   pts/1        Apr  5 21:23
> > ...
> > > > gerrit   pts/24       Apr  6 12:43
> > 
> > > It's not a discrepancy.  You probably have a bunch of xterms or
> > > ssh/telnet sessions open.  Each one sucks up a /dev/pts and has a user

I actually have no xterms or ssh/telnet sessions open. I did see,
however, that when I open an xterm and close it again, the number of
users reported by 'who' has grown by one.

> > lsof -n | grep pts

# lsof -n
dhclient    675    root  cwd    DIR        3,2     4096     352001 /etc/sysconfig/network-scripts
vsftpd      919    root    1u   CHR      136,0                   2 /dev/pts/0 (deleted)
vsftpd      919    root    2u   CHR      136,0                   2 /dev/pts/0 (deleted)
gpm         984    root    0u   CHR      136,0                   2 /dev/pts/0 (deleted)
crond      1058    root    0u   CHR      136,0                   2 /dev/pts/0 (deleted)

So where does 'who' gets its information from? As reported earlier, there
are no files visible in /dev/pts. I have earlier seen a discrepency between
'w' and 'who'. Is this documented somewhere?

> There may be a bug in gdm.  It does not properly "logout" the sessions
> when you select log out from the GNOME menu.  I haven't had time to
> properly document the problem, but someone should put it in bugzilla.
> I haven't tried the lsof command Andy listed yet.

I'm not sure when exactly this started. I think it was when I started to
run my own kernel, but I fail to see the connection. Around the same
time I did a 'yum update' so I may just as well have received a new version
of something which is causing the bug. I am using KDE with Konsole. If
I click "new session" and immediatly log it out again, the next session
gets a higher /dev/pts number, instead of the same one, as was the case
earlier. It sounds like a bug somewhere to me, but I have no idea at
what level. When I log in with SSH, I get pts/33, when I logout and
login again immediatly, I get pts/34, and then pts/35, etc., as if 33
is not freed again. To me, it sounds like a bug in something lower than
KDE.

So if it is a bug and I should file it, I have no idea where...
 
Gerrit.

-- 
Weather in Twenthe, Netherlands 08/04 07:25:
	4.0°C Few clouds mostly cloudy wind 3.1 m/s WNW (57 m above NAP)
-- 
Experiences with Asperger's Syndrome:
	EN http://topjaklont.student.utwente.nl/english/
	NL http://topjaklont.student.utwente.nl/



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux