ITPub博客

首页 > Linux操作系统 > Linux操作系统 > HP-UX重置root密码

HP-UX重置root密码

Linux操作系统 作者:wf_suse 时间:2015-08-14 16:52:53 0 删除 编辑

Boot in Single User Mode

HP 9000

1. Initiate the boot sequence

# shutdown -ry 0

2. Interrupt the PDC boot sequence.

[Escape]

3. Boot the system in single user mode interacting with the IPL.

bo pri
Choose the boot disk:
P#
Interact with IPL? y ISL> hpux -is 

Integrity

1. Initiate the boot sequence:

# shutdown -ry 0

2. Interrupt the EFI boot manager autoboot.

EFI Boot Manager ver 1.10 (14.60] Firmware ver 1.61 [4241]
[Escape]

3. Select to boot from the Primary Boot. Don't let that the autoboot time out!

EFI Boot Manager ver 1.10 (14.60] Firmware ver 1.61 [4241]
Please select a boot option HP-UX Primary Boot HP-UX Alternate Boot
   EFI Shell [Built-in]

4. Interrupt the HPUX kernel loader when prompted.

HP-UX Boot Loader for IA64 Revision 1.61
Press Any Key to interrupt Autoboot
\EFI\HPUX\AUTO ===> boot vmunix
Seconds lefts till autoboot - 10 [Escape] Type 'help' for help

Instuct the system to boot in Single User mode at the HPUX> prompt:

HPUX> boot vmunix -is 
NOTE: If the login prompt appears on the screen after booting in Single User mode, then the Require Login Upon Boot to Single-User Stateoption was selected. Is required to:
  1. Use the recovery CD
  2. Mount the root file system
  3. Remove the password from the /etc/passwd file


Reset the root user password

1. When the server issue the single user command prompt. Change the password using /sbin/passwd command.

# /sbin/passwd root

2. If the system prompts you for the old password, that is because your system is running in Trusted Mode. Go back to the prompt and use the following procedure to reset the password in the Trust Database.

# fsck -F vxfs /usr
# mount /usr
# /usr/sam/lbin/usermod.sam -F -p "" root
# /sbin/passwd root

3. Reboot the server.

# shutdown -ry 0

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29704533/viewspace-1771699/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2014-06-12

  • 博文量
    3
  • 访问量
    23785