Operating System - HP-UX
1848449 Members
8395 Online
104028 Solutions
New Discussion

Lost passwd root or /etc/passwd

 
SOLVED
Go to solution
Carme Torca
Super Advisor

Lost passwd root or /etc/passwd

Hi,
I cannot enter in one hpux, I think anybody has removed the /etc/passwd, because I cannot enter with any user.

What could I do?
Thanks a lot of!
Carmen.

Users are not too bad ;-)
7 REPLIES 7
Peter Godron
Honored Contributor
Solution

Re: Lost passwd root or /etc/passwd

Carmen,
see Steven answer in:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=834054

Goto single-user mode
edit /etc/passwd

In your case, you could then restore from backup, after the machine is back.
Steven E. Protter
Exalted Contributor

Re: Lost passwd root or /etc/passwd

Shalom,

Yes, I like my answer and the others in the thread.

You probably can restore /etc/passwd from a backup in single user mode.

If not, you can go network mode and copy one in from another system using ftp.

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
Reshma Malusare
Trusted Contributor

Re: Lost passwd root or /etc/passwd

Hi,
Its always better to keep backup of important files.
So,now you try to copy from other system.
shrikant gadhave
New Member

Re: Lost passwd root or /etc/passwd

Hi Carme,
I suggest ,edit /etc/passwd through single user mode.
Regards
Shrikant
Victor BERRIDGE
Honored Contributor

Re: Lost passwd root or /etc/passwd

Greetings,

When you say you cant connect as any user, from where are you trying?
If you are trying to connect via the lan,it may very well be just some inetd/IP stack issue...

Are you in front of the console?


All the best
Victor
Peter Godron
Honored Contributor

Re: Lost passwd root or /etc/passwd

Carmen,
assuming this problem is now resolved,
could you please complete the thread by awarding points to helpful answers and summarising the solution for you.

This will help resolution of similar problems in the future.
Carme Torca
Super Advisor

Re: Lost passwd root or /etc/passwd

Of course,
Thanks everybody!!
Users are not too bad ;-)