User Name
Password
AppleNova Forums » Genius Bar »

Login/logout times?


Register Members List Calendar Search FAQ Posting Guidelines
Login/logout times?
Thread Tools
alcimedes
I shot the sherrif.
 
Join Date: May 2004
Send a message via ICQ to alcimedes  
2008-09-22, 10:09

Is there any log, file or app. that tracks a user's login/logout times?
  quote
chucker
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2008-09-22, 11:08

You can install the Common Criteria Tools to add a highly configurable auditing facility to OS X. It's explained in more detail in Amit Singh's book: http://books.google.com/books?id=K8v...sult#PPA144,M1
  quote
Taskiss
Veteran Member
 
Join Date: Jul 2007
Location: St. Louis, MO
 
2008-09-22, 12:12

Try "last -1 USERID", and try it without the "-1" (minus one), then try it without the USERID
  quote
Kickaha
Veteran Member
 
Join Date: May 2004
 
2008-09-22, 12:20

Finally, try it without the 'last'.


What? I'm trying to be complete here!
  quote
curiousuburb
Antimatter Man
 
Join Date: May 2004
Location: that interweb thing
 
2008-09-22, 13:53

Local machine or wifi/router access logs?
Single user or multi-user machine?
Which OS version?
  quote
alcimedes
I shot the sherrif.
 
Join Date: May 2004
Send a message via ICQ to alcimedes  
2008-09-22, 14:10

10.5.5, single user, hardwired to the network.

What's last USERID returning?
  quote
Taskiss
Veteran Member
 
Join Date: Jul 2007
Location: St. Louis, MO
 
2008-09-22, 14:16

Quote:
Originally Posted by alcimedes View Post
10.5.5, single user, hardwired to the network.

What's last USERID returning?
On another UNIX varient:

Code:
$ last -1 user228 user228 pts/0 Mon Sep 22 14:13 still logged in $ last user228 user228 pts/0 Mon Sep 22 14:13 still logged in user228 pts/1 Mon Sep 22 08:27 - 08:59 (00:31) user228 pts/1 Thu Sep 18 14:08 - 15:09 (01:01) user228 pts/0 Wed Sep 17 09:39 - 10:07 (00:28) . . . $ last ... reams and reams of all login records...
"last -1 USERID" returns the last record of that user, "last USERID" returns all records for that user, "last" returns all records of every user since the beginning of time, as that computer understands it.

Do a "man last" for further details.

real hackers don't use sigs
  quote
alcimedes
I shot the sherrif.
 
Join Date: May 2004
Send a message via ICQ to alcimedes  
2008-09-23, 01:45

Hmm, showing login times that don't correspond with login/logout times.

Last is no good.
  quote
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2008-09-23, 02:16

It looks like the Mac version of last only shows stats for shell connections, not GUI login/logouts. Looking at it from that perspective, the times appear to coincide correctly for me.

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote
alcimedes
I shot the sherrif.
 
Join Date: May 2004
Send a message via ICQ to alcimedes  
2008-09-23, 02:43

Yeah, this isn't a shell issue though.

I think the system.log will be good enough in this case. I was looking for something tied to the login window itself. system appears to be at least somewhat in this case. (user wasn't ever logging out at all, so it kind of skews it)

Google is your frenemy.
Caveat Emptor - Latin for tough titty
I tend to interpret things in the way that's most hilarious to me
  quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Post Reply

Forum Jump
Thread Tools

« Previous Thread | Next Thread »

All times are GMT -5. The time now is 10:34.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova