Operating System - HP-UX
1830899 Members
3453 Online
110017 Solutions
New Discussion

I have a problem with root.

 
Oziel Garcia Lemus
Occasional Contributor

I have a problem with root.

Hi.

I can't use root, i revice this alarm when i try to conect or login to root.

HP-UX meissa B.11.11 U 9000/800 (ta)

login: root
Password:
Account is disabled - see Account Administrator

Wait for login exit: ..


Connection to host lost.

Can you help me to this problem.

Regards.
Oziel
16 REPLIES 16
John Payne_2
Honored Contributor

Re: I have a problem with root.

It looks like someone has 'suspended' the root account for you. It is really called being 'deactivated', but the word suspended works better for what it does for root. (You'll have to thank the person later.)

Root can always log into the console, even if it is suspended. Assuming you have the correct password, log in there. That is all you need to do to get things going again, I automatically takes the 'block' off.

Hope it helps

John
Spoon!!!!
Caesar_3
Esteemed Contributor

Re: I have a problem with root.

Hello!

Looks like the root account is disabled on
the machine.

Caesar
Sridhar Bhaskarla
Honored Contributor

Re: I have a problem with root.

Hi Oziel,

Your account is disabled. Go to the console and login from there. Once you are in activate the account using the command

/usr/lbin/modprpw -k root

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
John Payne_2
Honored Contributor

Re: I have a problem with root.

Alternatively, if you have configured 'restricted sam' (sam -r) for someone, have them go into sam, and reactivate root's user. (users and group -> users -> select root -> actions -> reactivate)

Hope it helps

John
Spoon!!!!
Wouter Jagers
Honored Contributor

Re: I have a problem with root.

You are trying to log on to a trusted system on which the root account has been locked. Most likely this happened because someone tried to log on with the wrong password a couple of times.

You should still be able to log on as root on the machine's console. On your HPUX version this will also unlock the account, so you won't have to do anything else to fix the problem.

To make sure, you can logon at the console and then run sam to check the status of the account.

Regards
Wouter
an engineer's aim in a discussion is not to persuade, but to clarify.
Oziel Garcia Lemus
Occasional Contributor

Re: I have a problem with root.

Ok.

but what i need to do to root works again?

Regards
Oziel
Patrick Wallek
Honored Contributor

Re: I have a problem with root.

Log onto the system console, Secure web console, or lan console as root.

After you do that:

# /usr/lbin/modprpw -k root


This will reactivate root.

If you can not login to the console via root, please let us know.

Please try to login to the console with root.
John Dvorchak
Honored Contributor

Re: I have a problem with root.

You have to go to the console that is hooked to the computer and login as root from there. Then root will become active again automatically.
If it has wheels or a skirt, you can't afford it.
Oziel Garcia Lemus
Occasional Contributor

Re: I have a problem with root.

If i reset by power on the server, y can work with root or what i can do to fix that?

Regards
Oziel
Michael Tully
Honored Contributor

Re: I have a problem with root.

From the console:

Login: root
password:

# /usr/lbin/modprpw -k root

There is no need to start switching machines off just yet ...
If there is a shell session somewhere, try su -

Try all of these things first and let us know the result.
Anyone for a Mutiny ?
Patrick Wallek
Honored Contributor

Re: I have a problem with root.

PLEASE READ THE BLOODY RESPONSES TO YOUR QUESTION!!!! We're trying to tell you how to fix the problem!

If you can't log in as root on the console, PLEASE LET US KNOW!!!!!
Michael Tully
Honored Contributor

Re: I have a problem with root.

Patrick, go and have a beer ....

for me coffee it's only 9AM ...
Anyone for a Mutiny ?
Steven E. Protter
Exalted Contributor

Re: I have a problem with root.

You have been told to go to the console and log on as root.

There you will be able to log on and run the command

passwd

to change the password.

This might not work, in which case you will have to do as follows:

Restart the machine. Hopefully an operator with shutdown priveledge is logged on otherwise, shut down all databases,applications, etc and (grimace) go to the power switch.

At boot from the console:

Interupt at the 10 second prompt.

bo



Interact with the ISL> Y

hpux -is

Unless single user mode is password protected, you can now run the command:

passwd

Change the password.

If the thing still wont change there is a final trick(s)

In /etc/password

blank you the password section. Save the file.

Now you have no password for root. Quickly run:

passwd

On a trusted system,

Edit the file /tcb/files/auth/r/root.
Look for a line with something like this:

:u_pwd=UNpk1V5S4Kt.:
Edit it to look like this:

:u_pwd=:
That will remove the encrypted password for root. Use passwd to set a new password.


vi the root file and null out the encrypted password, leaving the / characters around it.

Save the file.

Again, quickly run passwd and set a root password.

WARNING: messing up in these instructions can make your system worse.

WARNING: leaving the root password null can lead to complete system destruction.

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
M. Z. Harbi
Advisor

Re: I have a problem with root.

Hi,

You can log-on on with root on the console only.
it tells you that the account is disabled but it logs you in.
go to sam and enable the account by going to:
usres and groups-->users choose the user root from the list and then choose actions-->modify
and there you can change your password..
you can put the same old password as a the new password and the system will accept it.

Regards,
M. Z. Harbi
UNDERSTAND life. Do NOT just STAND UNDER it...
twang
Honored Contributor

Re: I have a problem with root.

Hi Oziel,

You got very good answer above, try to following the advices, you should be able to reactivate the root account.

good luck
twang
Kiran Kumar Aekabote
Frequent Advisor

Re: I have a problem with root.

Hi
As solutions are provided by somany peers

First, try this with root previliges
#/usr/lbin/modprpw -k root

Secondly, do this to eliminate the root user be out of the default policy:

You change the root a/c policy, through SAM.
Run SAM and go to users-> select the "root" a/c from actions tab select Modify users security policies.

From this select the password ageing policies and set to "disable".

select General user account policies and set the following as:
1.A/c life time :None(infinite)
2.Max. inactive days: disable(default)
3.Unsuccessful login tries allowed: customize and value to be set to 0 (zero)
4.Authorised user to boot in single user mode : Yes

Thirdly, If the above two options fail to reactivate the root a/c, u need to reboot the system in single user mode by interrupting the normal boot process, and entering into ISL as said by other peers.

Good Luck
You Just can't beat ME