1837836 Members
2456 Online
110121 Solutions
New Discussion

"who" command problem

 
SSP_1
Regular Advisor

"who" command problem

Hi Experts,

Scenario :- superdomes, hpux11i

Problem :- Not able to get outputs from commands "who -b" or "who -r" . Just returns to the command prompt if invoking.

Obstacles exist to challenge you to keep going. Not to quit.
6 REPLIES 6
Niraj Kumar Verma
Trusted Contributor

Re: "who" command problem

Hi,

# who -b

uses the file
/etc/utmp

Can you please verify the content of /etc/utmp

# /usr/sbin/acct/fwtmp < /etc/utmp |more

-Niraj
Niraj.Verma@philips.com
Niraj Kumar Verma
Trusted Contributor

Re: "who" command problem

Also try

# chmod 644 /etc/utmp

#who -b

-Niraj
Niraj.Verma@philips.com
Trond Haugen
Honored Contributor

Re: "who" command problem

It's probably a corrupt /etc/utmp. You could try 'who -r /var/adm/wtmp'.
If you are not running who as root it could be the access rights on utmp which should be -rw-r--r--.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
MANOJ SRIVASTAVA
Honored Contributor

Re: "who" command problem

Niraj Kumar Verma
Trusted Contributor

Re: "who" command problem

little curious !!!

Is it working ????


-Niraj

Note: Don't forget to assign points
Niraj.Verma@philips.com
Peter Kloetgen
Esteemed Contributor

Re: "who" command problem

Hi Shripad,

as allready mentioned, seems to be a corrupted utmp- file.

--> man utmp / wtmp

here a command is described, which can repair this file.

If you use ITO/OVO, call your Supportteam, they designed a tool which checks the utmp-file and is also able to repair it.

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping