Operating System - HP-UX
1834941 Members
2159 Online
110071 Solutions
New Discussion

root account disabled!! Please help

 
SOLVED
Go to solution
Joe Profaizer
Super Advisor

root account disabled!! Please help

root account is disabled, I am however able to log into root via the gsp, but can't enable root account via SAM.

I tried changing the password for root via gsp, but it still didn't enable the account

Please assist!

Thanks
10 REPLIES 10
Pete Randall
Outstanding Contributor

Re: root account disabled!! Please help

Joe,

Is this system trusted? If not, you can simply boot into single user mode and change the password using the passwd command.

Pete

Pete
Joe Profaizer
Super Advisor

Re: root account disabled!! Please help

The system is trusted.

..Joe
Michael Elleby III_1
Trusted Contributor

Re: root account disabled!! Please help

Joe-

1. Boot into Single user mode by interrupting the boot process when indicated by pressing the space bar, typing in 'bo pri' when presented with a prompt, then answering Y when asked about interacting with ISL. When you receive the ISL prompt, then type in 'hpux -is'

2. Untrust the system by entering the command 'tsconvert -r'

3. Reset the root passwd

4. Boot the system regularly and then re-trust the system.

Mike-
Knowledge Is Power
Jean-Louis Phelix
Honored Contributor

Re: root account disabled!! Please help

hi,

use modprpw -k root

Regards.
It works for me (© Bill McNAMARA ...)
Joe Profaizer
Super Advisor

Re: root account disabled!! Please help

whats modprpw do?

I reactivated the account via sam and it still won't let me in now - as it states "login incorrect". It seems the password has changed on me now. When I type passwd, it will not accept my old password, so that I can change the password
Joe Profaizer
Super Advisor

Re: root account disabled!! Please help

Any other suggestions??!!!
Martin Johnson
Honored Contributor
Solution

Re: root account disabled!! Please help

If the system is not trusted, edit /etc/passwd and remove root's password. It is between the first and second ":"

If it is trusted, edit /tcb/files/auth/r/root and remove root's password. It should look something like this:

:u_pwd=uFrimeHcDL:
remove everything between the "=" and the ":".

HTH
Marty
Domenico_5
Respected Contributor

Re: root account disabled!! Please help

hi joe

I doesn't understand if you have a shell with root or not, because if you can't login how can you do all sugestion??? bha!!!!

If you don't have a shell with root, I think that you can install an O.S. in a empty disk, mount the old boot disk, and delete the root password (like the last suggest)

regards
S.K. Chan
Honored Contributor

Re: root account disabled!! Please help

Running ..
# /usr/lbin/modprpw -k root
will reactivate your root account (in single user mode) if you cannot get access via the console. Do ..
# man modprpw
for more details.
Omololu Shobayo
Frequent Advisor

Re: root account disabled!! Please help

according to you, you could logon to the server.

do these steps.
run

# /usr/lbin/modprpw -k root to enable the password
then,
to nullify thee password field.

for 10.20 system

# /usr/lbin/modprpw -w "" root

for 11.X system use

# /usr/sam/lbin/usermod.sam -F -p "" root

then

# passwd root

This will allow you to change the passwd.