Operating System - HP-UX
1827293 Members
1598 Online
109717 Solutions
New Discussion

How to recover /etc/passwd

 
chris dorsman
Occasional Advisor

How to recover /etc/passwd

Hello,

I have edited /etc/passwd as root, but not in a "special mode".
Now I cannot login.. Is there a way how to recover this?
6 REPLIES 6
Jeeshan
Honored Contributor

Re: How to recover /etc/passwd

which user u modified?
a warrior never quits
Dennis Handly
Acclaimed Contributor

Re: How to recover /etc/passwd

>but not in a "special mode".

I assume by this you didn't use vipw(1m)?

>Now I cannot login. Is there a way how to recover this?

Login as root? If so, you'll need to go into single user mode.
chris dorsman
Occasional Advisor

Re: How to recover /etc/passwd

*cough* root
Jeeshan
Honored Contributor

Re: How to recover /etc/passwd

you need to go in single user mode to change your root password
a warrior never quits
chris dorsman
Occasional Advisor

Re: How to recover /etc/passwd

thnx for the sollution!
Jeeshan
Honored Contributor

Re: How to recover /etc/passwd

if you get the correct solution, there may be some price.:)
a warrior never quits