Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2573778
  • 博文数量: 323
  • 博客积分: 10211
  • 博客等级: 上将
  • 技术积分: 4934
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-27 14:56
文章分类

全部博文(323)

文章存档

2012年(5)

2011年(3)

2010年(6)

2009年(140)

2008年(169)

分类: 系统运维

2008-10-16 15:57:04

 

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

阅读(3518) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~