我们在使用AIX系统的过程中,极有可能会遇到忘记root密码的情况,下面提供root密码重置的方法:
实验环境:
AIX主机IP:192.168.1.35
HMC主机IP:192.168.1.202
客户端IP:192.168.1.137
一、关闭系统
关闭忘记密码的AIX的Lpar。
二、启动系统到SMS菜单
在HMC中选择“Operations—Active—Profile—Advanced”,更改Boot mode为SMS,启动Lpar。
三、插入AIX系统安装光盘
将AIX光盘插入Lpar的光驱。
四、开始恢复密码
在控制台窗口中,依次选择以下选项:
Select Boot Options.
Select Install/Boot Device
List all Devices
系统会自动扫描所有可启动设备,在扫描的设备中选择光驱,并选择Normal Mode Boot。
系统会引导进去AIX安装环境,在安装选项中,选择:
Start Maintenance Mode for System Recovery
Access a Root Volume Group
在显示Type the number for a volume group to display the logical volume information and press Enter.时,选择安装了AIX系统的磁盘。按回车。
在提示Type the number of your choice and press Enter.时,选择Access this Volume Group and start a shell.
稍等片刻,系统会启动一个具有root权限的shell,如下图:
这时只需用password命令直接修改root密码即可。