Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #1021

Re: gdm: how do I log who logs in?

From Todd <Todd@invalid.com>
Newsgroups comp.os.linux.misc
Subject Re: gdm: how do I log who logs in?
Date 2011-05-04 13:29 -0700
Organization A noiseless patient Spider
Message-ID <ipscv7$2vo$2@dont-email.me> (permalink)
References <ips758$rpl$1@dont-email.me> <mmhwp.18472$uh5.12850@newsfe02.iad>

Show all headers | View raw


On 05/04/2011 11:59 AM, Lew Pitcher wrote:
> On May 4, 2011 14:50, in comp.os.linux.misc, Todd@invalid.com wrote:
>
>> Hi All,
>>
>> Is there a way to have gmd log who logs in and
>> when they logged back out?  Not having much luck
>> Googling this.  :-(
>
> gdm, like all other "login methods" updates utmp and wtmp when users log in
> and log out.
>
> You can use
>    /usr/sbin/lastlog
> or
>    /usr/bin/last
> to see the last login/logout times for all users.
>
> Additionally,
>    /usr/bin/who
> will tell you who's logged in (and at what time), and
>    /usr/bin/w
> not only reports who's logged in, but what they are currently doing
>
> HTH

Wow.  Thank you.  Even better than what I asked!

-T

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

gdm: how do I log who logs in? Todd <Todd@invalid.com> - 2011-05-04 11:50 -0700
  Re: gdm: how do I log who logs in? Lew Pitcher <lpitcher@teksavvy.com> - 2011-05-04 14:59 -0400
    Re: gdm: how do I log who logs in? Todd <Todd@invalid.com> - 2011-05-04 13:29 -0700
  Re: gdm: how do I log who logs in? Richard Kettlewell <rjk@greenend.org.uk> - 2011-05-04 20:00 +0100
    Re: gdm: how do I log who logs in? Todd <Todd@invalid.com> - 2011-05-04 13:29 -0700
  Re: gdm: how do I log who logs in? Bill Marcum <bill@lat.localnet> - 2011-05-05 15:35 -0400
    Re: gdm: how do I log who logs in? Todd <Todd@invalid.com> - 2011-05-06 13:46 -0700

csiph-web