Root account is disabled in HP-UX

Today i addressed an issue about root account is disabled in HP-UX system.

Cause:Users tried many times(more than 3 times) to login with wrong password.

Symptom:

When you login on the console,it will return to the login screen after you type even correct password without any errors.

When you try to login through  SSH or Telnet,it will return with

  1. "Account is disabled- see Account Administrator"   
  2.  

Many SAs have provided some solutions on this issue,but their solutions are not preferred at the first time. 

'cause they request to reboot the system for single user mode which means you have to interrupt the business. Of couse this is the solution, but not the first one we should try.

Workaround:

1、Try the MP card,not to first reboot the system in the CM mode,but try to enter the Console,if you exit the Console last time with "Ctrl + B",well,lucky guy,this time you can solve this problem without reboot your system,all you have yo do is just use the following commands:

 

  1. # /usr/lbin/getprpw root  

then,it'll throw out some lines about your sysetem,if your system is a trusted system,then it will come out with your account informations,such as useris,userpwd.....

in this situation,you should use this command first to enable your account:

  1. # /usr/lbin/modprpw -k root  

Then u can change the password.

  1. # /sbin/passwd root 

If your system is not trusted,the it will appear such information

  1. System is not trusted 

if you see this,then you can change your password :

  1. # sbin/passwd 

Ok,i have to say something about TRUSTED and NOT TRUSTED system.

In TRUSTED system,taht means the password of the account must be complex ,such as you should at least create the password for 8 characters with digitals and letters etc.And when a user failed to login for several times,the account would be disabled or locked.

In NOT TRUSTED system,there's no such restrictions.

however,we can convert the system from TRUST into NOT TRUST system,but not recommend.

  1. # /usr/lbin/tsconvert -r 

2、If we can't even enter the CO mode,then we have to reboot the system, if it's a cluster with MC/SG,we'd better run the packages on the other system first.

Reboot: 

In the CM mode,type "rs" with confirmaion of "y" to reboot the system.

Single Mode:

When system is rebooting ,with the appearance of this messages,press any key to interrupt:

  1. Autoboot from primary boot path enabled.  
  2. To override, press any key within 10 seconds. 

then type:

  1. ISL> hpux -is 

or

  1. HPUX> hpux -is                                      
  2.  
  3. > System Memory = 1004 MB  
  4.  
  5. loading section 0  
  6.  
  7. ............................................................. (complete)  
  8.  
  9. loading section 1  
  10.  
  11. .............. (complete)  
  12.  
  13. loading symbol table  
  14.  
  15. loading System Directory (boot.sys) to MFS  
  16.  
  17. ....  
  18.  
  19. loading MFSFILES directory (bootfs) to MFS  
  20.  
  21. ................  
  22.  
  23. Launching /stand/vmunix  
  24.  
  25. SIZE: Text:30839K + Data:7145K + BSS:5302K = Total:43287K  
  26.  
  27.    
  28.  
  29. Console is on a Serial Device  
  30.  
  31. Booting kernel...  

then it's single user mode,after all the configuration,just type:

  1. # init 3 

to enter the runlevel 3 for multiuser mode system.

 

For my own reference only.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章