zoukankan      html  css  js  c++  java
  • 刀片服务器密码过期, console无法登录解决方案

    设备信息

    HPUX 11.31 Trust系统

    报错信息

    HP刀片备份服务器root密码过期,console登录服务器输入密码有报错,如下:

    操作步骤:

    一、Trust系统单用户下,已知旧密码的情况下修改密码

    1通过MP卡,重启系统

    CM:hpiLO-> pc->c

    自检完成后,系统时EFI,出现“Press Any Key to interrupt Autoboot

    EFIHPUXAUTO ==> boot vmunix

    Seconds left till autoboot -  10

       Type 'help' for help”

    按任意键中断

    2HPUX> hpux –is (进入单用户模式)

    3# passwd root (设置新密码)

    Old password:

    New password:

    Re-enter new password:

    4# init 3 (运行到多用户模式)

    二、Trust系统单用户下,忘记旧密码的情况下修改密码

    1通过MP卡,重启系统

    CM:hpiLO-> pc->c

    自检完成后,系统时EFI,出现“Press Any Key to interrupt Autoboot

    EFIHPUXAUTO ==> boot vmunix

    Seconds left till autoboot -  10

       Type 'help' for help”

    按任意键中断

    2HPUX> hpux –is (进入单用户模式)

    3#  mount –a (挂载文件)

    UX:vxfs mount: ERROR: V-3-21268: /dev/vg00/lvol8 is corrupted. needs checking

    UX:vxfs mount: ERROR: V-3-21268: /dev/vg00/lvol7 is corrupted. needs checking

    UX:vxfs mount: ERROR: V-3-21268: /dev/vg00/lvol6 is corrupted. needs checking

    UX:vxfs mount: ERROR: V-3-21268: /dev/vg00/lvol5 is corrupted. needs checking

    UX:vxfs mount: ERROR: V-3-21268: /dev/vg00/lvol4 is corrupted. needs checking

    mount: /dev/vg00/lvol1 is already mounted on /stand

    4# fsck –y (若文件有损坏,进行修复)

    UX:vxfs fsck: INFO: V-3-20948: /dev/vg00/lvol3 is currently mounted

    UX:vxfs fsck: INFO: V-3-20948: /dev/vg00/lvol1 is currently mounted

    log replay in progress

    replay complete - marking super-block as CLEAN

    log replay in progress

    replay complete - marking super-block as CLEAN

    log replay in progress

    replay complete - marking super-block as CLEAN

    log replay in progress

    replay complete - marking super-block as CLEAN

    log replay in progress

    replay complete - marking super-block as CLEAN

    5检查确定是否为Trust模式:

    # /usr/lbin/getprpw root(结果是:System is not trusted 说明不是trust模式,否则为trust模式)

    6# /etc/tsconvert -r (改成非信任模式)

    Restoring /etc/passwd...

    /etc/passwd restored.

    Deleting at and crontab audit ID files...

    At and crontab audit ID files deleted.

    7# passwd root (设置新root密码)

    Changing password for root

    New password:

    Re-enter new password:

    Passwd successfully changed

    8#/etc/tsconvert (更改Trust模式)

    Creating secure password database...

    Directories created.

    Making default files.

    System default file created...

    Terminal default file created...

    Device assignment file created...

    Moving passwords...

    secure password database installed.

    Converting at and crontab jobs...

    At and crontab files converted.

    9确认是否为Trust模式

    # /usr/lbin/getprpw root

    10# init 3 (运行到多用户模式)

  • 相关阅读:
    SmartSql = Dapper + MyBatis + Cache(Memory | Redis) + ZooKeeper + R/W Splitting + ......
    SmartSql For Asp.Net Core 最佳实践
    如何通过本地化事件正确实现微服务内部强一致性,事件总线跨微服务间最终一致性
    Netty入门搭建
    IO同步阻塞与同步非阻塞
    NIO的缓冲区、通道、选择器关系理解
    SpringBoot整合ActiveMQ
    ActiveMQ的介绍及使用
    nginx入门(一)
    垃圾回收器及tomcat调优
  • 原文地址:https://www.cnblogs.com/rsrzrcj/p/15380233.html
Copyright © 2011-2022 走看看