Operating System - HP-UX
1753787 Members
7299 Online
108799 Solutions
New Discussion юеВ

Root Unix Pswrd HPUX-11.0

 
administrador
Advisor

Root Unix Pswrd HPUX-11.0

Hello Folks;

Urgent!!!

How can I get or reset my root pswrd, because nobody knows what was the last one.

Thanks a lot!!
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Root Unix Pswrd HPUX-11.0

Hi:

Boot into single-user mode and change it.

Regards!

...JRF...
Johnson Punniyalingam
Honored Contributor

Re: Root Unix Pswrd HPUX-11.0

>boot
Interact with IPL ? Y
ISL>hpux -iS
passwd root
Problems are common to all, but attitude makes the difference
Vishu
Trusted Contributor

Re: Root Unix Pswrd HPUX-11.0

hi,

Boot into the single user mode with 'hpux -is' at ISL> prompt. and simply do

# passwd root

it will change your root password.
Raj D.
Honored Contributor

Re: Root Unix Pswrd HPUX-11.0

You have to boot into single user mode , and to change it.

1. Reboot the sever using:
# shutdown -r -y 0 after apps are down.
2. While rebooting , interupt the boot sequence.
3. at PDC --> boot pri
4. Interact with ISL y
5. ISL:> hp-ux -is # to load in single user mode,
6. at # prompt change the password.

Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Taifur
Respected Contributor

Re: Root Unix Pswrd HPUX-11.0

Hi,

Boot into single usermode and change passowrd

ISL>hpux -is
#passwd root

Rgds//
Taifur
Matti_Kurkela
Honored Contributor

Re: Root Unix Pswrd HPUX-11.0

The instructions posted so far are all missing a step: after booting to single-user mode, the root filesystem is in read-only mode. It must be switched to read/write mode, or the new password cannot be saved.

The simplest way to do this is the command "mountall". If the system is connected to a SAN, it may produce some error messages because FibreChannel HBAs are not initialized yet. This is harmless.

ISL>hpux -is
# mountall
# /usr/bin/passwd root

It may also be necessary to specify a full path to the passwd command.

After setting the new password, you can either reboot the system with "shutdown -r now" or continue the normal system startup process with "telinit 3".

MK
MK
Sp4admin
Trusted Contributor

Re: Root Unix Pswrd HPUX-11.0

If booting into single user mode doesn't work and it's a trusted system. You can cd into /tcb/files/auth/r and vi root there is a password file. Remove all the charters so that it has":u_pwd=:\ " you will then be prompt for a new password.

hostname:/tcb/files/auth/r # more root
root:u_name=root:u_id#0:\
:u_pwd=NqU5O75dkYmvAiiG1P9SERNgWlQ4.JTDJPM:\
:u_bootauth:u_auditid#0:\
:u_auditflag#1:\
:u_succhg#1256224572:u_unsucchg#1238091808:u_pswduser=root:u_suclog#1258408731:\
:u_suctty=console:u_unsuclog#1256845670:u_unsuctty=console:u_lock@:\
:chkent:

good luck,
sp,