[K12OSN] 'who' lies about users...

Jim McQuillan jam at mcquil.com
Mon Aug 30 14:57:48 UTC 2004


Trond,

If you can see the users with 'last' but not with 'who', I think it
indicates that you are updating the 'wtmp' file, but not the 'utmp'
file.  I think you need to update both files when the user logs in/out.

Jim.


On Mon, Aug 30, 2004 at 04:50:46PM +0200, Trond M?hlum wrote:
> k12osn-bounces at redhat.com wrote:
> > k12osn-bounces at redhat.com wrote:
> >> Trond,
> >> 
> >> the 'who' command relies on entries in the utmp and wtmp files.
> >> 
> >> It's usually up to the display manager (GDM,XDM,KDM) to add the
> >> entries to the utmp files, and remove the entries when you log out.
> >> Over the years various display managers have been setup correctly or
> >> incorrectly to do that.  It varies alot by distribution, version and
> >> display manager.
> > 
> >> Take a look at the ltsp.org contrib page, Derek Dresser wrote an
> >> article about how to set up the session scripts to keep the utmp
> >> files updated. 
> >> 
> >> Jim McQuillan
> >> jam at Ltsp.org
> 
> 
> I followed the how-to and changed from GDM to KDM since the how-to
> applied to KDM. Now I can track users by using the 'last' command. I
> don't like the output from 'last', it's rather messy and gives a lot
> more information than I need.
> 
> Unfortunately, the 'who' command still fails. It still returns only one
> user when 'last' gives me 16. I have 5 LTSP servers based on K12LTSP
> 4.0.1 and every one of them behaves like this. So it's not an isolated
> error on one server. They all use LDAP for login and IceWM for the
> session.
> 
> Any suggestions? 
> 
> Regards
> 
> Trond M?hlum 
> 
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>





More information about the K12OSN mailing list