aix系统重置root密码

The following procedure describes how to recover access to root privileges when the system's root password is unavailable or unknown.

The following procedure requires some system downtime. If possible, schedule your downtime when it least impacts your workload to protect yourself from a possible loss of data or functionality.

The information in this how-to scenario was tested using specific versions of AIX®. The results you obtain might vary significantly depending on your version and level of AIX.

 

  1. 将与当前安装相同版本和级别的产品介质插入相应的驱动器。
  2. 打开机器的电源。

  3. 当屏幕上的图标出现时,或者当你听到两声哔哔声时,重复按F1键,直到出现系统管理服务菜单。
  4. 选择Multiboot。

  5. 选择Install From。
  6. 选择保存产品介质的设备,然后选择安装。

  7. 选择AIX版本图标。
  8. 按F1键,然后按Enter键,将当前系统定义为系统控制台。
  9. 选择您想要的语言号码并按Enter。

  10. 选择“Start Maintenance Mode for System Recovery”,输入“3”,按“Enter”。
  11. Select Access a Root Volume Group.
    将显示一条消息,说明如果此时更改根卷组,则在不重新引导的情况下将无法返回到Installation菜单。
  12. 输入0,按“Enter”。
  13. 从列表中输入相应卷组的编号,然后按Enter。
  14. 选择Access this Volume Group,输入1并按Enter启动shell。
  15. 在#(数字符号)提示符下,在命令行提示符下输入passwd命令重置根密码。
    For example:
    # passwd
    Changing password for "root"
    root's New password: 
    Enter the new password again:

     

  16. 要将缓冲区中的所有内容写入硬盘并重新启动系统,请键入以下命令:

    sync;sync;sync;reboot

     

     

     

    1、 插入系统启动光盘(就是AIX 安装光盘的 CD 1),重启系统。
    2、 在系统启动界面出现时,按1键,进入sms menu模式。
    3、 选择7(Select Boot Options)并回车。
    选择1(Select Install or Boot Device)并回车。
    选择3(CD/DVD)并回车。
    选择6(List all device)并回车。
    选择12(CD-ROM)并回车。
    选择2(Normal Mode Boot)并回车。
    选择1(Yes)并回车。
    4、 系统提示“STARTING SOFTWOARE PLEASE WAIT...”。
    5、 输入 1 选择系统终端,并回车。
    6、 选择1(Type 1 and press Enter to have
    English during install),并回车。
    7、 选择3(Start Maintenance Mode for System
    Receovery),并回车。
    8、 选择1(Access a Root Volume Group),并回车。
    9、 选择0(Continue),并回车。
    10、
    选择1(Volume
    Group),并回车。
    11、
    选择1(Access
    this Volume Group and start a shell),并回车,进入root用户提示符“#”。
    12、
    执行passwd,输入密码“root”,再次确认密码“root”,重启系统。
    13、
    在系统启动界面出现时,按1键,进入menu模式。
    14、
    选择7(Select
    Boot Options)并回车。
    选择1(Select Install or Boot Device)并回车。
    选择5(Hard Drive)并回车。
    选择6(List all device)并回车。
    选择10(SCSI 73GB Harddisk)并回车。
    选择2(Normal Mode Boot)并回车。
    选择1(Yes)并回车。
    15、
    系统提示“STARTING SOFTWOARE PLEASE
    WAIT...”。
    16、
    系统启动完成,使用root用户和修改后的密码登录。
    17、
    取出系统光盘,密码修改完成。

posted @ 2023-07-24 16:45  小明123_123  阅读(212)  评论(0)    收藏  举报