Tracking Who Has Logged Into a Server? | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Tracking Who Has Logged Into a Server?

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-24-2011
leond leond is offline
Registered User
 
Join Date: Aug 2002
Last Activity: 30 October 2012, 10:36 AM EDT
Location: Uxbridge, MA
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Tracking Who Has Logged Into a Server?

I am running Solaris 10 on a variety of SUN servers. I need to be able to tell who has logged into the server.

Is this info kept in any of the logs on the system?

Thanks,
LeonD
Sponsored Links
    #2  
Old 05-24-2011
pludi's Avatar
pludi pludi is offline Forum Advisor  
Cat herder
 
Join Date: Dec 2008
Last Activity: 28 March 2014, 8:35 AM EDT
Location: Vienna, Austria, Earth
Posts: 5,522
Thanks: 38
Thanked 335 Times in 308 Posts
man last
The Following User Says Thank You to pludi For This Useful Post:
leond (05-24-2011)
Sponsored Links
    #3  
Old 05-24-2011
leond leond is offline
Registered User
 
Join Date: Aug 2002
Last Activity: 30 October 2012, 10:36 AM EDT
Location: Uxbridge, MA
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Thanks pludi, that's the info I need.

Now if I needed to keep historical data, I'm assuming the easiest way would be to put list in a script and have it create unique files at regular intervals. Is that correct?

Also, when I do a list on one of my servers, it only goes back one week. Is there somewhere I can find data that is similar but older?

Thanks again,
LeonD
    #4  
Old 05-24-2011
bartus11's Avatar
bartus11 bartus11 is offline Forum Staff  
Moderator
 
Join Date: Apr 2009
Last Activity: 27 July 2014, 4:13 PM EDT
Posts: 3,707
Thanks: 7
Thanked 1,141 Times in 1,112 Posts
Quote:
Originally Posted by leond View Post
Also, when I do a list on one of my servers, it only goes back one week. Is there somewhere I can find data that is similar but older?
It is possible that /var/adm/wtmpx file (database read by last command) got corrupted. Check man wtmpfix for a way to fix it.
Sponsored Links
    #5  
Old 05-24-2011
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 18 April 2014, 5:13 AM EDT
Posts: 6,396
Thanks: 287
Thanked 672 Times in 642 Posts
Your administrator may be ageing the wtmpx file.
Sponsored Links
    #6  
Old 05-24-2011
leond leond is offline
Registered User
 
Join Date: Aug 2002
Last Activity: 30 October 2012, 10:36 AM EDT
Location: Uxbridge, MA
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
How much data should be in the wtmpx database? More than one week?

In this case, I am the administrator. We're basically using a straight install of Solaris 10. So if it's being aged, it's not on purpose.

Thanks for the help,
LeonD
Sponsored Links
    #7  
Old 05-24-2011
bartus11's Avatar
bartus11 bartus11 is offline Forum Staff  
Moderator
 
Join Date: Apr 2009
Last Activity: 27 July 2014, 4:13 PM EDT
Posts: 3,707
Thanks: 7
Thanked 1,141 Times in 1,112 Posts
It should contain data from the day of the first boot after installation.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to log out of the server in such a manner that you are not logged out of PUTTY? himvat UNIX and Linux Applications 3 05-11-2011 02:17 AM
Shell script in tracking both the passed and failed login in a unix server linuxgeek Shell Programming and Scripting 0 11-10-2009 12:25 AM
server load tracking vsmurali Shell Programming and Scripting 2 03-14-2008 09:34 AM
user logged on any server NIMISH AGARWAL UNIX and Linux Applications 3 09-28-2007 10:26 AM
Need help getting logged in to server mayewil Solaris 1 10-26-2006 03:06 PM



All times are GMT -4. The time now is 04:17 AM.