LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 04-09-2012, 10:52 AM   #1
glendalebiker
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
IBM AIX root password Recovery steps


Hi,

I have read previous topics related with this issue, but in the last step when starting rootvg with shell,system prompts an error to terminal screen over n over again,I can't see whats written.

Our cluster based on AIX 5.3, I'm using a different AIX 5.3 CD then the one we installed, could it be the reason of error ? Do I have to use exactly the same version/revision disk I used in the installation ?

P.S: Installed OS is AIX 5.3 ---9, CD I'm using 5.3 ---7.

Thanks,
 
Old 04-09-2012, 06:46 PM   #2
DukeSSD
Member
 
Registered: Sep 2007
Posts: 87

Rep: Reputation: 20
Could be the old boot media, could be a bad console / connection, either way your old AIX level goes out of IBM support at the end of the month - Call IBM, get them to help get your system back up and help you upgrade to something still in support for a while longer than the next 3 weeks...
 
Old 04-09-2012, 07:03 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,105

Rep: Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362
"With bootable media as the same version and level as the system, boot the system. The bootable media can be any ONE of the following: "

http://www-01.ibm.com/support/docvie...d=isg3T1000366
 
Old 04-10-2012, 02:34 AM   #4
glendalebiker
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for your responses. I would like to ask 1 more thing.

Server is IBM P series (520), with AIX 5.3 installed as I stated before. How about connecting directly from console port (HMC) ? I read somewhere if connected from HMC then I can edit etc/security/passwd ??? Delete root's encrypted password and it will become NULL.

Anyone tried this before ?
 
Old 04-11-2012, 03:51 AM   #5
glendalebiker
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
HMC not working for root password recovery....

System OS level is IBM AIX 5300-08 (5.3.8.0). The OS CD/DVD I'm trying for boot is 5300-07.

Recovery steps are successful till last step "Access this Volume Group and start a shell" in Service Mode (with 5300-07 CD/DVD). But when system tries the mount rootvg it gives error, and prompt errors to terminal screen (we can't see the error clearly cause it keeps prompting over and over again).

Today I found 5300-08 disk and I will try with this,hope it works.

One of the questions I want to ask to you is the "mksysb". If we can have the current system's mksysb and copy it to a tape disk, can we also use this to recover root password ???
 
Old 04-18-2012, 02:16 AM   #6
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 250

Rep: Reputation: 107Reputation: 107
Hi there,

Regarding the boot from CD, the problem is most likely caused by a mismatch between the software on the CD and that in rootvg, which you are mounting. You can try and circumvent this by choosing "Access this volume group and start a shell before mounting the file systems" instead of "Access this Volume Group and start a shell". This way will be running completely from the CD. If this works, you'll have to mount the root filesystem (/dev/hd4) manually (say to /mnt), and the "passwd" command won't work as expected, so you will have to edit the /mnt/etc/security/passwd file manually. Set the password stanza for root to "KsXcTr5uZPZt6" (without the quotes), which is an encrypted version of "p@ssw0rd" (again without the quotes). Unmount & reboot, and you should be able to log in with this temporary password.

Regarding the mksysb, I'm not sure what you mean by a "tape disk", or whether your mksysb is currently on tape / CD / file on disk. If you have access to another AIX server, you can restore the /etc/security/passwd file from the mksysb to a temporary file, as follows:
Code:
cd /tmp
restore -xqvf your_mksysb_device_or_filename ./etc/security/passwd
You can then use the password stanza from this file in my steps above.

Alternately if you have access to the mksysb from the problematic server, you can boot & mount /dev/hd4 as above, and then use this restore command to restore the passwd file.

I hope this helps!
 
Old 04-23-2012, 02:10 PM   #7
glendalebiker
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
@ cliffordw,

Thanks for the feedback. Forgive my laziness, I did try above last week.Started shell without mounting rootvg, then manually mounted hd4, I then edited /etc/security/passwd (password and lastupdate).

After changing the password I did sync and rebooted the server, it worked like a charm.

My OS is AIX 5.3 with TL8, you can use 5300-08,5300-09 or even 5300-07 CD to do this. Error I'm getting is due to incompatible version of the medium I'm using, as you also stated above. Although I's using same version CD 5300-08,it kept giving me that error.

Thanks for all your valuable inputs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AIX root password recovery baruch_824 AIX 9 09-28-2010 05:28 PM
Recovery of root password tjd>6591 Suse/Novell 7 01-23-2010 11:26 PM
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 09:59 AM


All times are GMT -5. The time now is 06:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration