Operating System - HP-UX
1822525 Members
2590 Online
109642 Solutions
New Discussion юеВ

Re: Failed resetting root passwd in single user mode

 
Lee Chin
New Member

Failed resetting root passwd in single user mode

I have try resetting root passwd in single user mode, but prompt me permission denied.
This is what I do:
1. boot into single user mode from cdrom
2. #passwd root
3. # key in new passwd and re-type passwd
4. # Permission denied
Please advise . Thank you.
5 REPLIES 5
KapilRaj
Honored Contributor

Re: Failed resetting root passwd in single user mode

If u have an untrusted system follow the below procedures

cp /etc/passwd /etc/passwd.backup
vi /etc/passwd # remove the second field(delimiter column ":") for the root user and save the file.

Regds,

Kaps
Nothing is impossible
T G Manikandan
Honored Contributor

Re: Failed resetting root passwd in single user mode

Is the system trusted or non-trusted?
T G Manikandan
Honored Contributor

Re: Failed resetting root passwd in single user mode

Also,are you using nis?
Bharat Katkar
Honored Contributor

Re: Failed resetting root passwd in single user mode

Hi Did you followed this procedure.

1. Reboot the system, halt it at PDC
2. Main Menu> bo
3. Do you want to interact with IPL> Yes
4. ISL> hpux -is
5. # passwd
New Password:
Confirm Password:
6. # sync;sync;sync;reboot
7. Now boot the system in normal level and try logging as root.

This works for me.
Regards,
You need to know a lot to actually know how little you know
KapilRaj
Honored Contributor

Re: Failed resetting root passwd in single user mode

bharath,

u got the point .. i did'nt read his comments about boot from cdrom !!

Kaps
Nothing is impossible