last

Just a quick tip as this question came across the opensolaris-help forum - "How can I (as admin) find out when a certain user e.g. "karl" most recently logged in and most recently logged out of a system?"

The simple answer is last:

bleonard@opensolaris:~$ last karl 
karl      pts/5        10.0.1.9         Thu Jul 15 11:12   still logged in
karl      sshd         10.0.1.9         Thu Jul 15 11:12   still logged in
karl      pts/5        opensolaris      Thu Jul 15 11:11 - 11:12  (00:00)
karl      sshd         opensolaris      Thu Jul 15 11:11 - 11:12  (00:00)

Comments:

Are you serious about this posting?. Which opensolaris user wouldn't know that. I mean any unix/Linux familiar user would know this. Anyways I am glad that there is atleast a posting on observatory :)

Posted by Prudhvi Surapaneni on July 15, 2010 at 11:41 AM GMT #

Well, I didn't :-). Nor did the guy that posted the question to the help alias. I figured it was basic, but thought I'd put it out there anyhow.

Posted by Brian Leonard on July 15, 2010 at 12:04 PM GMT #

Ufff! I thought that's your last blog entry :) Brian, please don't scare me ;)

Posted by PTecza on July 16, 2010 at 01:11 AM GMT #

Now that is funny!

Posted by Brian Leonard on July 16, 2010 at 06:21 AM GMT #

Well, I must be one of those stupid Unix users who didn't know about "last" too? Thanks for telling me about it!

Posted by Charlie Hunt on August 03, 2010 at 10:05 AM GMT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

The Observatory is a blog for users of Oracle Solaris. Tune in here for tips, tricks and more as we explore the Solaris operating system from Oracle.

Connect with Oracle Solaris:


Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today