Operating System - HP-UX
1753447 Members
5126 Online
108794 Solutions
New Discussion

hoe to recreate passwd file in single user mode

 
Amit Vartak
Occasional Contributor

hoe to recreate passwd file in single user mode

unix is booting in single usermode passwd file is showing 0bytes,
ERROR
/sbin/ioinitrc:
insf: failed to find user bin in passwd file using uid2 instead,
insf:failed to find root in passwd file using current uid (0) instead

 

P.S. This thread has been moved from HP-UX Technical Documentation to HP-UX > sysadmin. -HP Forum Moderator

4 REPLIES 4
Sudeesh
Respected Contributor

Re: hoe to recreate passwd file in single user mode

Restore from backup, if you have one.
Otherwise copy the default passwd file from /etc/newconfig/etc and set passwd for root.



Sudeesh


The most predictable thing in life is its unpredictability
Arunvijai_4
Honored Contributor

Re: hoe to recreate passwd file in single user mode

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=956671

Above thread may help.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: hoe to recreate passwd file in single user mode

check other passwd file as,

find / -name "passwd"

I hope you may get passwd file as /usr/newconfig/etc/passwd. Try to mount /usr file system and copy that /etc/passwd file to /etc/passwd with -r--r--r-- permission.

hth.
Easy to suggest when don't know about the problem!
Sudeesh
Respected Contributor

Re: hoe to recreate passwd file in single user mode

pls read the path as /usr/newconfig/etc/passwd . I apologise fo rthe mistake.


Sudeesh
The most predictable thing in life is its unpredictability