Unix/Linux 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 Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 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 Unix and Linux 05-24-2011
pludi's Unix or Linux Image
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 Unix and Linux 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 Unix and Linux 05-24-2011
bartus11's Unix or Linux Image
bartus11 bartus11 is offline Forum Staff  
Moderator
 
Join Date: Apr 2009
Last Activity: 28 June 2015, 6:17 PM EDT
Posts: 3,733
Thanks: 7
Thanked 1,152 Times in 1,122 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 Unix and Linux 05-24-2011
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 22 June 2015, 6:47 PM EDT
Posts: 6,399
Thanks: 288
Thanked 675 Times in 644 Posts
Your administrator may be ageing the wtmpx file.
Sponsored Links
    #6  
Old Unix and Linux 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 Unix and Linux 05-24-2011
bartus11's Unix or Linux Image
bartus11 bartus11 is offline Forum Staff  
Moderator
 
Join Date: Apr 2009
Last Activity: 28 June 2015, 6:17 PM EDT
Posts: 3,733
Thanks: 7
Thanked 1,152 Times in 1,122 Posts
It should contain data from the day of the first boot after installation.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 07:22 AM.