Operating System - HP-UX
1758657 Members
2351 Online
108874 Solutions
New Discussion юеВ

Re: HP-UX 11.0 - Mapping of uid to user names was lost or corrupted?

 
SOLVED
Go to solution
Martin de la Garza
New Member

HP-UX 11.0 - Mapping of uid to user names was lost or corrupted?

Instead of UserNames, I only have UID referenced on HPUX commands.
Whenever you do an "ls" or an "ps -ef" you see UID instead of UserName.
It seems that may /etc/passwd is corrupted? I realized /var filesystem was full. I cleaned up, but problem still remains.
I'm affraid to reboot the server, since it could not be booted up???.
Regards

Please advise what can I do to restore the mapping between UID and UserName.
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: HP-UX 11.0 - Mapping of uid to user names was lost or corrupted?

pwck

grpck

This will check the integrity of those files.

If the root / filesystem gets to 100% on an 11.00 system, I've seen the /etc/group and/or /etc/passwd file get dropped to zero bytes.

You would need to restore the file from a RECENT backup.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Darren Prior
Honored Contributor

Re: HP-UX 11.0 - Mapping of uid to user names was lost or corrupted?

Hi,

I believe SEP's hit the nail on the head, but also check that /etc/passwd has 444 permissions - I've seen people change it to 400 to be "more secure", then find that only root can see the names in an ll listing, everyone else just sees the UID.

Also, if this is a trusted system it's well worth running authck -pv to ensure the tcb and /etc/passwd are aligned.

regards,

Darren.
Calm down. It's only ones and zeros...