The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
set Working day in ksh Rafael.Buria Shell Programming and Scripting 1 10-09-2007 01:42 AM
Not working Mandab Shell Programming and Scripting 7 05-11-2007 06:23 PM
FTP is not working. ronald_brayan Security 10 04-04-2007 05:23 AM
sed not working baanprog UNIX for Advanced & Expert Users 5 09-18-2006 05:11 AM
why is this not working? matt2kjones UNIX for Dummies Questions & Answers 2 07-09-2002 12:58 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-19-2007
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
who not working

Hi,
We have a AIX 5.3 box. The 'who' command is not displaying the users loggged in to the system. Even who -a doesnt list out all the users. What are the details that I need to provide? Could it be a permission issue? Slightly confused at this moment.

The who -q gives output as '0 users'. Very strange!!

Last edited by ranj@chn; 04-19-2007 at 09:31 PM. Reason: adding more info
Reply With Quote
Forum Sponsor
  #2  
Old 04-20-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
I do not know that much AIX. Do you have a utmp or utmpx file that show activity - ie. get larger over time?

Normally these files are maintained by init, login, getty, telnet; entries are constantly being added on an active system.
Reply With Quote
  #3  
Old 04-20-2007
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
yes

The utmp file is getting updated. Even the /var/adm/wtmp file gets updated. I check the ouput of 'last' and some of the rows show that system was halted abnormally. Could this be the cause of the issue? Sometimes, the last 's output shows a terminal itself as a user. Please find a sample output.
Quote:
rkumar@bdc4reteaix1w:/var/adm >who -a
. system boot Apr 17 10:34
. . Apr 17 10:34 3:47
. . Apr 17 10:34 3:47
. . Apr 17 10:34 3:47
. . Apr 17 10:34 3:47
. . Apr 17 10:34 3:47
. . Apr 17 10:34 3:47
. . Apr 17 10:34 3:47
srcmstr + . Apr 17 10:34 3:47
. . Apr 17 10:34 3:47
. . Apr 17 10:34 3:47
. . Apr 17 10:34 3:47
. . Apr 17 10:34 3:47
. . Apr 17 10:36 3:47
cron + . Apr 17 10:36 3:47
. . Apr 17 10:36 3:47
. . Apr 17 10:36 3:47
. . Apr 17 10:37 3:47
uprintfd + . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
LOGIN - lft0 Apr 17 10:37 18:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:37 3:47
. . Apr 17 10:38 3:47
. . Apr 17 10:37 3:47
. pts/1 Apr 17 13:24 0:06
. pts/0 Apr 19 18:43 .
. pts/2 Apr 17 13:41 5:39
rkumar@bdc4reteaix1w:/var/adm >last |more
pts/2 pts/0 F)$M-^W10.230.200.40 Jan 15 16:27 still logged in.
oretail Dec 31 18:00 still logged in.
oretail pts/0 10.187.152.123 Apr 19 18:29 - 18:43 (00:14)
oretail pts/0 10.187.152.123 Apr 19 16:57 - 17:12 (00:14)
oretail pts/0 10.187.152.123 Apr 19 16:19 - 16:54 (00:34)
oretail pts/0 10.187.152.123 Apr 19 16:17 - 16:18 (00:01)
I also cannot understand how the above line(in bold red) appears. Has the file got corrupted?
Reply With Quote
  #4  
Old 04-20-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
Not necessarily - it just means init did not cleanup when the process ended.
Does AIX have the equivalent of truss, tusc or strace?

Try AIX's equivalent of
Code:
truss who
to find out if there are permissions problems. Truss/strace and some other utilities show all system calls and their result.
Reply With Quote
  #5  
Old 04-26-2007
Registered User
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 187
hai,

I have been working in AIX 5.1 version. and in that who command is working fine. Even who -a and who -q is giveing list of users corrently logged into the system.
you can try out following option with who command :
-A
Displays all accounting entries in the /etc/utmp file. These
entries are generated through the acctwtmp command.
-m
Displays information about the current terminal only. The who -m
command is equivalent to the who am i and who am I commands.

even though if its not working then it might be the issue of permissions/rights given to you.

thanks.
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 10:12 AM.


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