Operating System - HP-UX
1820390 Members
3681 Online
109623 Solutions
New Discussion юеВ

root - login problems - pls., help.

 
Kalyan Thalavoipuram
Occasional Contributor

root - login problems - pls., help.


We are getting the error below when trying
to login as root ...

Account is disabled -- see Account Administrator.

How do we enable root ? We can login to the
m/c using other login's though. Not able to
run SAM also as you need to be root to run
SAM ?

Thanks,
Kalyan.
19 REPLIES 19
Vincenzo Restuccia
Honored Contributor

Re: root - login problems - pls., help.

yes need to be root to run SAM.
Reboot in single user mode and
#passwd root

Andrew Maslin
Frequent Advisor

Re: root - login problems - pls., help.

I may be wrong, but I don't think just changing the password for root will automatically re-enable the account. I think, after booting into single-user mode, you'll need to go into SAM and reactivate the account.
Kalyan Thalavoipuram
Occasional Contributor

Re: root - login problems - pls., help.


How do we boon in single user mode.
We do not know the root password
to get into single user mode.
A. Clay Stephenson
Acclaimed Contributor

Re: root - login problems - pls., help.

You will need to boot single-user mode and reset the root passwd. If this is a server class machine, interrupt the boot process by
pressing after the console display
begin.
BOOT PRI
Interact with IPL? Yes
IPL> hpux -is
That will give you a prompt and you can do a
passwd root command
If it ain't broke, I can fix that.
Rahul Mehta
Valued Contributor

Re: root - login problems - pls., help.

There are too many things for this.

Do you have any administrator login other than root ?

if (no)

Then can you reboot the server.
if (yes)
boot the server in maintenance mode
edit /etc/passwd file
if there is * in front of root
entry delete it.
Or change Uid and gid of adm
account to 0
and change the passwd of adm
account with "passwd adm" command
Next time you boot the server You
will be able to login with adm
with the all root capabilities
You can than restore root account,
change the password of the root
and restore original adm uid and gid
else
exit

else
login with the user and you can use
the sam features.
Vincenzo Restuccia
Honored Contributor

Re: root - login problems - pls., help.

If you want start SAM in single user
#mount -a
#SAM
boley janowski
Trusted Contributor

Re: root - login problems - pls., help.

i didnt see what type of server you are working on and if you were trying to login from the CDE when you get this message, if you have a CDE and are running the secure passwd (i dont remeber the name, its been a while) any way, if this is the case when the root is typed in incorrectly three times at the CDE that is the message you will get. at this point you only have to reboot if you have the screen lock on. if you are at the CDE login, select "options", "command line login" and at the command prompt login as root with the same passwd, then exit. this will reset the CDE login, then at CDE you will be able to login as usual.

try it out,
Kalyan Thalavoipuram
Occasional Contributor

Re: root - login problems - pls., help.


I'm still having trouble booting
in a single user mode.

The system that we have is HP-9000
D-Class server. It is connected to HP
Entria Plus from which we try to access.

The monitor/keyboard/mouse are all
hooked up on to the HP Entria Plus box.

Which shows an X Windows term. It asks
for a login / password which also does
not work.

We switched off the power and back on
the display is not showing up at all
till the system boots all the way back
up.


Rui_3
Occasional Advisor

Re: root - login problems - pls., help.

Hi,
You will need a web consule, and then just run the command.

/usr/lbin/modprpw -k root

you will have to have mount '/usr' first.

regards
A. Clay Stephenson
Acclaimed Contributor

Re: root - login problems - pls., help.

One method to get in would be to connect a terminal to the console serial port. Booting single user should then be easy.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: root - login problems - pls., help.

I just had one other thought. I can't remember the error message but it is possible that the is an /etc/securetty entry which only allows
logins of root from the console. However, su root commands can be done from anywhere. You might try logging in as a regular user then su root - it's worth a try.
If it ain't broke, I can fix that.

Re: root - login problems - pls., help.

BOOTING IN SINGLE USER

Interact with the IPL by pressing any key at boot up.

When boot menu arrives type BO PRI

Interact with IPL/ISL Y/N =Y

Then type hpux -s /stand/vmunix
once you have a prompt type passwd root
and enter a new password.
Wieslaw Krajewski
Honored Contributor

Re: root - login problems - pls., help.

Hi,

Try to give some extra details.
Does it means that you can not login to single user run level, because of password.
If so, you must use support cd.
If you confirm that this is exactly this case I'll send you the procedure.

Rgds.
Permanent training makes master
boley janowski
Trusted Contributor

Re: root - login problems - pls., help.

reguardless of what is happening, if you can not log in as someone else and su to root from your x-term, you will need either a direct|web console to get into the box. and if it is a secure passwd issue you will need to login from that console to after you boot to level-3 and then exit. if it is not a secure passwd issue. at the console while running its memory test, hit b so the system will not proceed to boot, after the memory test is done type co at the colon prompt, bo pri isl, yes to interact with isl, the hpux -is. at this point you should be able to type passwd, or the whole path, /sbin/passwd if /usr is not mounted.

good luck
Efim Kushnir
Frequent Advisor

Re: root - login problems - pls., help.

hello
sorry for my english
I think this way is true:
1. after reboot in 10 second pause press space bar
2. boot from bootable device (path) with IPL
3. after this: IPL> hpux -is
4. use command: set_parms root_passwd
5. change password
6. after this - reboot

regards,
Efim Kushnir
Look for the answers, do not stop !
Philip P. Hartl
Valued Contributor

Re: root - login problems - pls., help.

You don't say if you are trying to login at the serial port console device. Typically this message results from multiple attempts to log as root and failing the password. Login at the serial console device will succeed and reset the account.
Don't take life so seriously; nobody gets out alive.
G.Kumar
Frequent Advisor

Re: root - login problems - pls., help.

hai kalyan;

The mentioned error can come when system is in trusted mode and somebody trying with wrong passwd for root more than allowed time.Please check /tcb is empty or not.

gopa
Kalyan Thalavoipuram
Occasional Contributor

Re: root - login problems - pls., help.


We were able to fix this. We
were able to bring the system
in single user mode and login
as root.

We then used SAM to reactivate
the account. It worked fine.

Thanks a lot for all your help.

Thanks,
Kalyan.
boley janowski
Trusted Contributor

Re: root - login problems - pls., help.

Kaylan,

Thats great, glad to here it. Once last suggestion, assign points to those that helped or assign N/A's because if you dont it shows up in your stats. And then no one will help next time. Just a suggestion.