cancel
Showing results for 
Search instead for 
Did you mean: 

Enable root password

unixadmin_1
Frequent Advisor

Enable root password

Hi everybody,

Can please send the procedure to enable root passwords where they are disabled and i got access to root earlier ..this is my second week as a unix admin..Please let me know its a urgent..

thank you
9 REPLIES
Jeeshan
Honored Contributor

Re: Enable root password

question is not clear.

you can change the root password in single user mode.
a warrior never quits
The Tiger
Advisor

Re: Enable root password

Whats the message u gets while attempting to login as root ..

Have u changed ur passwd recently ??

Is there any other user who has got root previleges ?

Finally r u using "root" login or any other login with root previlages ..

unixadmin_1
Frequent Advisor

Re: Enable root password

the message is "wait for login exit..."

no i am using the same password assigned earlier..
The Tiger
Advisor

Re: Enable root password


Hope u r trying to login with "root" user name..

Have u got any other user with roor previleges ??

What about the normal users.. r they able to login without any problems ??
The Tiger
Advisor

Re: Enable root password

r u using telnet ??
The Tiger
Advisor

Re: Enable root password

It looks like a time out issue..

The controlling parameter is in the /tcb/files/auth/system/default file, towards the end "t_login_timeout#10:"
Change the #10 to a higher number or to #0 to completely disable it.
Johnson Punniyalingam
Honored Contributor

Re: Enable root password

>>Can please send the procedure to enable root passwords where they are disabled and i got access to root earlier ..this is my second week as a unix admin..Please let me know its a urgent..<<

Once root account Locked,

You need to have Direct Console acces Login
to enable it,

# /usr/lbin/modprpw -k root
(above command will enable root account)

other tricky ways,

Considering you have "rcp"&rlogin" enabled
to try rlogin or rcp the passwd,

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Bala_che
Occasional Visitor

Re: Enable root password

Hi

reboot your server interrupt the boot sequence when it says you have 10 seconds to do so, boot from the primary boot device, answer Y to interact with IPL, then boot into single user mode by doing hpux -is This will boot and log you in as root without a password, then you can reset the password and reboot back to normal


Thanks You..

Don Ritchey
Frequent Advisor

Re: Enable root password

Another avenue to the solution is to use sudo (if it is installed) to execute the "/usr/lbin/modprprw -k root" command as an administrative user with appropriate priveledges under sudo.

Even more useful, get used to doing system admin tasks requiring root access via sudo. This has two advantages:

1. You don't have to login as root and risk doing the unexpected as root if you have forgotten where you are or which system the window is connected to.

2. sudo produces a convenient log file to track what you were doing for review and documentation of your actions.