Operating System - HP-UX
1825577 Members
2358 Online
109682 Solutions
New Discussion

Init single reboot with no /etc/passwd

 
SOLVED
Go to solution

Init single reboot with no /etc/passwd

Seems my HPUX box has no the /etc/passwd anymore, Can I boot it through IS mode anyway ? Should I use some CD to do that ?
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: Init single reboot with no /etc/passwd

You should be able to boot in single user mode.
James R. Ferguson
Acclaimed Contributor
Solution

Re: Init single reboot with no /etc/passwd

Hi:

If you are still logged in, you could copy '/usr/newconfig/etc/passwd' as '/etc/passwd' and at least regain the standard accounts.

Regards!

...JRF...
Ganesan R
Honored Contributor

Re: Init single reboot with no /etc/passwd

Hi,

If the system is up and running why don't you try to put the file through ftp /sftp / scp from last good backup?
Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: Init single reboot with no /etc/passwd

Hi,

If you still not able to access the server by any of the above method, then boot into single user mode, mount the usr filesystem, then copy the '/usr/newconfig/etc/passwd' to /etc/passwd.

After that change the root password using passwd command reboot it. Once rebooted recover the /etc/passwd from last backup if you have one.
Best wishes,

Ganesh.
Johnson Punniyalingam
Honored Contributor

Re: Init single reboot with no /etc/passwd

>>Init single reboot with no /etc/passwd <<

Booting in Single User Mode, doesn't prompt for root Password,

so you can interupt the boot Sequence

ISL>hpux -is

Hope This Helps,

Thx,
Johnson
Problems are common to all, but attitude makes the difference