Operating System - HP-UX
1847762 Members
3220 Online
104013 Solutions
New Discussion

finger command stopped working

 
SOLVED
Go to solution
Fred Martin_1
Valued Contributor

finger command stopped working

For some reason, the finger command is not functioning. It returns the three question marks for any search string I use, even those that I know should return a hit.

Where do I begin, to troubleshoot?

Aside from normal administration that would include editing passwd, group and alias files, the only other thing done lately (that I know of) was the recent telnetd patch, and a reboot.

Any suggestions welcome,
Fred
fmartin@applicatorssales.com
7 REPLIES 7
harry d brown jr
Honored Contributor
Solution

Re: finger command stopped working

One of these files is probably toast:

/etc/utmp ------- who file
/var/adm/wtmp ----last login file

Most likely wtmp. Do a last,and who to see if you get any garbage.
Live Free or Die
Sridhar Bhaskarla
Honored Contributor

Re: finger command stopped working

Check the permissions on /etc/utmp.

It should be 644 for the finger to work.

What is the specific error you are getting?.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: finger command stopped working

If the wtmp and utmp files are ok. Then I would check to see that pwgrd is running - if this is an 11x box. Pwgrd can also fail or give very strange results if if does have room to write files. Do a bdf and check for full filesystems.
If it ain't broke, I can fix that.
Alan Riggs
Honored Contributor

Re: finger command stopped working

And, of course, turn off finger anyway if it is not expressly required in your environment.
Fred Martin_1
Valued Contributor

Re: finger command stopped working

Checked last and who commands, output looked normal. Checked file permissions as suggested, they looked OK. I'm running HP-UX 10.20.

When all that looked good, I started messing with the finger command, and found that it actually did work on some queries but not others.

So, I looked closer at the passwd file, and...

DOH!

One passwd entry had the UID field removed. Finger worked for all the names above that line, and failed for all the entries below it.

Some system administrator (ahem; that would be me) had edited the file manually to disable an account quickly, and removed the field by accident.

Thanks for your help, folks.
fmartin@applicatorssales.com
A. Clay Stephenson
Acclaimed Contributor

Re: finger command stopped working

Bad boy Fred.

Rule 1) Make a copy of the passwd file before you edit. Rule 2) Always be logged in as root in at least two sessions so that you can get yourself out of trouble as fast as you got yourself in. Rule 3) ALWAYS run pwck after you edit to alert you to errors.

Glad you fixed it, Clay
If it ain't broke, I can fix that.
Darrell Allen
Honored Contributor

Re: finger command stopped working

I hate it when that happens!

Looks like another good reason to use pwck on a regular basis.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)