The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Command not working preethgideon UNIX for Dummies Questions & Answers 3 05-14-2008 11:56 AM
why is this command not working? wrapster UNIX for Advanced & Expert Users 1 05-02-2008 09:11 AM
Sed command not working shashi_kiran_v UNIX for Dummies Questions & Answers 9 11-15-2006 12:01 AM
cd command not working er_aparna Shell Programming and Scripting 7 07-08-2006 01:38 AM
cp command not working groundlevel UNIX for Dummies Questions & Answers 7 03-22-2006 01:48 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-02-2005
antalexi's Avatar
antalexi antalexi is offline
Registered User
  
 

Join Date: May 2004
Location: Southern California
Posts: 53
last command not working

I have a Solaris 8 Ultra 1 on my network that we use as a utility server.

The last command, which looks in the /var/adm/wtmpx file, is not working.

When I do a last, the latest entry is dated June 3, but the /var/adm/wtmpx file is dated whenever a login is successful (verified by typing a ls -al in the /var/adm directory).

I've rebooted the server, thinking that a process/daemon was hung, but no luck.

Any thoughts? Suggestions?

Many thanks for your support.
  #2 (permalink)  
Old 08-03-2005
Unbeliever Unbeliever is offline
Registered User
  
 

Join Date: Jul 2005
Location: England
Posts: 183
Does:

last -f /var/adm/wtmpx

produce the output you are looking for? Also check permissions on /var/adm/wtmpx. Should be owner and group 'adm' and be 644 permissions
  #3 (permalink)  
Old 08-03-2005
antalexi's Avatar
antalexi antalexi is offline
Registered User
  
 

Join Date: May 2004
Location: Southern California
Posts: 53
I get the same result as if I had typed the last command.

The last -f /var/adm/wtmpx command returns the last date as June 3.

The permissions and owner/group are as you indicated.

The size of the wtmpx file is 1736260kb and that the time stamp does change when someone logs onto the server.
  #4 (permalink)  
Old 08-04-2005
Unbeliever Unbeliever is offline
Registered User
  
 

Join Date: Jul 2005
Location: England
Posts: 183
Ok a few things to check.

is the /var partition full?

df -k /var

Will tell you. Whats the final line of output from your last command ... should read something like:

wtmp begins Wed May 19 14:41

if you do

last reboot

Does it show the previous reboots correctly?

And just to be 100% sure ... Please be aware that 'last' displays the entries in revers order ... ie the most recent entries appear first. So if you run

last | more

The most recent login with be the first line on the first page.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0