电信运营商root解锁

解锁root用户的办法

以下操作不分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

43同行回答

hongchan1122hongchan1122其他company
十分有用,很不錯呀显示全部
十分有用,很不錯呀收起
2010-05-22
浏览1844
lchhaocanlchhaocan系统工程师北京富通
学习了。。显示全部
学习了。。收起
IT分销/经销 · 2010-04-25
浏览1817
feng337feng337软件开发工程师弘腾数码科技发展有限责任公司
学习了,谢谢楼主显示全部
学习了,谢谢楼主收起
互联网服务 · 2010-04-24
浏览1875
bmn001bmn001工程师swg
顶!!!!!!!学习。显示全部
顶!!!!!!!学习。收起
IT分销/经销 · 2010-04-23
浏览1903
上帝爱世人上帝爱世人系统管理员北京西普科技
有用啊!显示全部
有用啊!收起
IT分销/经销 · 2010-04-23
浏览1947
study123study123系统架构师ERICSSON
学习了谢谢分享!显示全部
学习了
谢谢分享!收起
系统集成 · 2010-03-08
浏览1963
青山松青山松系统运维工程师传媒
牛人,学习了显示全部
牛人,学习了收起
媒体出版 · 2010-03-08
浏览1923
chinabushchinabush系统管理员浙江省公安厅
新年快乐显示全部
新年快乐收起
政府机关 · 2010-02-13
浏览1923
jackywu1027jackywu1027技术经理湖南省万象科技有限公司
学习了,谢谢显示全部
学习了,谢谢收起
IT分销/经销 · 2010-01-06
浏览1953
pumpkinpumpkin存储工程师IBM
学习了顶一下~~~~~~~·显示全部
学习了顶一下~~~~~~~·收起
互联网服务 · 2010-01-04
浏览1921

提问者

skyzqq
系统运维工程师中国联通河南省分公司
擅长领域: 服务器网络Unix

相关问题

问题状态

  • 发布时间:2008-10-10
  • 关注会员:0 人
  • 问题浏览:28665
  • 最近回答:2010-05-22
  • X社区推广