Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I change the root pwd if I don´t remember it?

Status
Not open for further replies.

chavax

Programmer
Jan 17, 2002
9
US
Hi, I work for IBM in Mexico and somebody here forgot the password for root in an AIX 4.3.

How can I reset it or change it?

Thanks in advance.
 
chavax,

try this, it should work - it works for me.

Recovering the root password

Booting microchannel systems into Service mode
To boot microchannel systems into Service mode, turn the key to the Maintenance position and press the yellow Reset button twice. You must boot from bootable media, such as an installation CD-ROM, installation tape or a bootable backup tape made via the mksysb command or the Sysback product of the correct level for this machine.

Booting PCI-based systems into Service mode
When booting a PowerPC into Service mode, cd0 or rmt0 must be before the hdisk in the bootlist. If not, change the bootlist at boot time. On some models, you can set the machine to use a default bootlist that includes both cd0 and rmt0. If a bootable CD or tape is in the CD-ROM or tape drive, the machine will boot from this device.

For most of the newer PCI-based models, selecting the default bootlist, with a bootable tape or CD loaded in the machine, causes the system to automatically boot from that device. Generally, the next menu on the screen asks the administrator to define the system console.

For all machines discussed here, if you are using a graphical terminal, you will use a function key such as F5. If you are using an ASCII terminal, use an equivalent number key such as 5. Use the numbers across the top of the keyboard, not the numbers on the numeric keypad. On ASCII terminals, the icons may not be displayed on the screen; the number can be pressed between the second and the third beeps, the second beep being a series of three clicks.

If the system has a Service/Normal key, turn it to the Service position.

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:

Bootable CD-ROM
NON_AUTOINSTALL mksysb
Bootable Install Tape
Follow the prompts to the Welcome to Base OS menu.


Choose Start Maintenance Mode for System Recovery (Option 3). The next screen displays prompts for the Maintenance Menu. Choose option 1:

Access a Root Volume Group

The next screen prints a warning message and asks you to select 0 to continue. Select 0.

0 Continue

The next screen asks you to select the proper volume group. Select the proper volume group for your machine.

The console will display information about rootvg and a menu with two options. Choose option 1:

Access this volume group and start a shell

NOTE: You can also accomplish step 3 by booting into Service Mode from a Sysback Systape.

Choose Option 4 Utilities.
Import the rootvg.
Select hdisk.
Import rootvg and mount the filesystems.
When prompted with Rebuild the Boot LV? Choose No.
You should now see the # prompt.
Enter df. This will show that the root filesystems are mounted.
If you receive errors from the preceding options, do not continue with the rest of this procedure. First correct the problem. If you need assistance correcting the problem, contact one of the following:

local branch office
your point of sale
your AIX support center

Run the passwd command from the command prompt:

passwd
Changing password for "root"
root's New password:
Enter the new password again:

With the key in Normal position (if applicable), issue the reboot command:
sync;sync;sync;reboot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top