电信运营商root解锁

解锁root用户的办法

以下操作不分AIX版本。当启动盘和系统的ML一样时,按照一执行;当启动盘的ML比系统ML低时,执行一到其步骤10,选择2。然后按照二执行。一、ML级别一样时的做法1、将AIX V4.系统光盘(Volume 1 of 4)放入RS6000小型机光驱,关机重启。2、对于图形显示器,在出现“喇叭”的图形前,按F5键对...显示全部

以下操作不分AIX版本。当启动盘和系统的ML一样时,按照一执行;当启动盘的ML


比系统ML低时,执行一到其步骤10,选择2。然后按照二执行。



一、ML级别一样时的做法


1、将AIX V4.系统光盘(Volume 1 of 4)放入RS6000小型机光驱


,关机重启。


2、对于图形显示器,在出现“喇叭”的图形前,按F5键


对于字符终端或显示器,在出现“speak”之前,按5键


3、系统从光驱引导


4、出现以下选项后,按F1键后,按回车键:


Type the F1 key and press enter to use this display as


the system console.


5、出现以下选项后,选择“1”:


1 Type 1 and press enter to have English during install.


6、出现以下选项后,选择“3”进入系统维护菜单:


1 Start install now with default settings


2 Change/show installation settings and install


3 Start Maintenance Mode for System Recovery


7、出现以下选项后,选择“1”:


1 Access a Root Volume Group


2 Copy a System Dump to Removable Media


3 Access Advanced Maintenance Functions


4 Install from a System Backup


8、出现以下提示后,选择“0”:



If you choose to a root volume group,you will


no be able to return to the Base Operating System


Installation menus without rebooting.


Type the number of your choice and press Enter.


0 Continue


9、出现以下提示后,选择“1”:


Access a Root Volume Group Type the number for a


volume group to display the logical volume information


and press Enter.


1)Volume Group ... ... disks:


hdisk0 ...
hdisk1 ...


10、出现以下提示后,选择“1”:


1)Access the Volume Group and start a shell


2)Access the Volume Group and start a shell


before mounting filesystems


11、进入单用户维护系统,出现“#”号。


12、编辑/etc/passwd文件,将root后的“!”删除。


13、关机重启: shutdown –Fr




二、ML级别不同时的做法




手工mount rootvg:


手动方式,mount /dev/hd2 /mnt ,mkdir /test , mount /dev/hd4 /test


export PATH=$PATH:/mnt/bin


export PATH=$PATH:/mnt/sbin






mount /usr -------这样就可以用 vi命令了



方法1:修改password文件


cd /test/etc


cp passwd a.20070710
-----必须要备份passwd


vi
password


将root:!:0:0::/:/bin/ksh中的感叹号去掉,保存退出




方法2:修改/etc/security/passwd文件



vi /etc/security/passwd



下面是文件root部分


root:


password = AmMwUe2EQ491U



lastupdate = 1054106568



flags=



...



将password = 后面的内容去掉,变成:


root:



password =



lastupdate = 1054106568



flags=



...



保存退出.







umount /test


umount /mnt



在机器面板上按重启键



重启后root密码变为空。


恢复/etc/passwd即可。



如果第一次终端进不去,可telnet 进去,把/etc/passwd恢复



另外,查找vi的位置,用命令:



whence vi命令


收起
参与43

查看其它 42 个回答lchhaocan的回答

lchhaocanlchhaocan系统工程师北京富通
学习了。。
IT分销/经销 · 2010-04-25
浏览1855

回答者

lchhaocan
系统工程师北京富通

lchhaocan 最近回答过的问题

回答状态

  • 发布时间:2010-04-25
  • 关注会员:0 人
  • 回答浏览:1855
  • X社区推广