Operating System - HP-UX
1847677 Members
3605 Online
110265 Solutions
New Discussion

Re: plese suggest the solution

 
naveenk
New Member

plese suggest the solution

I edited the file /etc/passwd for the root user now the account is locked can you suggest the solution regarding this issue?
and now it is giving error is "Account is disabled, but root login from the console is allowed."
3 REPLIES 3
Ivan Krastev
Honored Contributor

Re: plese suggest the solution

Hi naveen
and welcome to forums.

To enable account from console:

# /usr/lbin/modprpw -k root

Try to login as another user and su to root.
If you have problem logging from console try to reboot to single user mode and change the root password.



regards,
ivan
Yogeeraj_1
Honored Contributor

Re: plese suggest the solution

hi,

if you have a backup of the password file, try to restore it.

otherwise if you have access to the console, login as the root user and change the root password using the "passwd root" command.

lastly, if both above fails, you will need to boot in single user mode and change the password.

hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Jaime Bolanos Rojas.
Honored Contributor

Re: plese suggest the solution

naveeenk,

This old thread will show you how to recover root access from single user mode:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1037700&admit=-682735245+1167912834180+28353475

Regards,

Jaime.
Work hard when the need comes out.