The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Development Releases: Linux Mint 4.0 Beta "Fluxbox", 4.0 Alpha "Debian" iBot UNIX and Linux RSS News 0 01-04-2008 12:00 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-19-2007 10:52 PM
grep to find content in between curly braces, "{" and "}," keshav_rk Shell Programming and Scripting 4 08-09-2007 07:14 PM
how could i make a program mixed with many "|", "<" and ">" strugglingman High Level Programming 2 04-29-2006 05:11 AM
No utpmx entry: you must exec "login" from lowest level "shell" peterpan UNIX for Dummies Questions & Answers 0 01-18-2006 01:15 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-07-2005
LBussy's Avatar
Registered User
 

Join Date: Sep 2005
Location: Kansas City, MO
Posts: 4
"who" and "w" do not work

Box is a 7028-6C4 running AIX 5.2. This is one of many for which neither the 'who' or the 'w' command work. The only other potentially revealing symptom is that the 'last' command output is formatted badly - the lines are not separated by line feeds.

I'm sure someone will have a perfectly reasonable explanation why I should have the answer to this without help. Those comments are welcome too.
Reply With Quote
Forum Sponsor
  #2  
Old 09-07-2005
Registered User
 

Join Date: Nov 2003
Location: Minnesota
Posts: 388
I would guess that the database files where login info and so on is stored are missing or damaged. I'm not sure where these are located in aix, but in Solaris they are /var/adm/utmpx and /var/adm/wtmpx.
Reply With Quote
  #3  
Old 09-07-2005
LBussy's Avatar
Registered User
 

Join Date: Sep 2005
Location: Kansas City, MO
Posts: 4
That fits with what I have found so far ... the /var/adm/wtmp in this case.

We had been using a dump from the 'last' command for user logging, apparently I need to rethink how the team is doing that. I'll start though the drudgery of reviewing the Sys Management docs and figuring that all out.
Reply With Quote
  #4  
Old 09-07-2005
LBussy's Avatar
Registered User
 

Join Date: Sep 2005
Location: Kansas City, MO
Posts: 4
Well that was fun. I see the various accounting processes are supposed to clean these logs up, truncate them and extract them to permanent-type files. I ran through the process, lost all the last log entries, and still no w or who commands.

Good thing this is on a dev system.

IBM call, coming up!
Reply With Quote
  #5  
Old 09-08-2005
LBussy's Avatar
Registered User
 

Join Date: Sep 2005
Location: Kansas City, MO
Posts: 4
This is kinda cool. I patched up the system to ML 6 per the tech I talked to. Still no joy.

I called again and there is another misc commands APAR that deals with 'last' and 'who' so at their direction I downloaded and installed bos.rte.misc_cmds.5.2.0.75.bff

Now, the 'last' command contains a dump of the /etc/security/user file! How cool is this huh?

So they created a level 1 security call out of what was a minor inconvenience.
Reply With Quote
  #6  
Old 09-08-2005
Registered User
 

Join Date: Nov 2003
Location: Minnesota
Posts: 388
Wow. I don't know much about AIX but it sounds like you got one messed up system there. Have fun with tech support. It is always fun to stump them!
Reply With Quote
  #7  
Old 09-23-2005
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,262
If you see a dump from /etc/security/user then something has really gone wild. Of course I can only guess at what is wrong, but have you checked your root-fs? Could it be that your i-nodes are cross-linked or something such?

There is a file /etc/security/failedlogin, which should contain logs about failed login attempts in /var/adm/wtmp format. If "last" fails on these two you can try "who" to get a similar formatted list:

who /etc/security/failedlogin

Another thing you could try is using "last" with the "-f <file>" parameter. maybe it helps to explicitly state the file it should work from. The same goes for /etc/utmp.

Hope this helps and I would appreciate follow-up information about what comes up about the system. Perhaps I would reinstall the system from a CD to get it to a clean state in a productive environment, but it should be much more informative to find out what the problem really is.

bakunin
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0