Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary of AIX password recovery process

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

If the customer has other users who have root privileges, they can log in with that user and perform the following restore actions.

# > passwd root

Changing password for "root"

Root''s New password:

Enter the new password again:

two。 If the customer does not have a second root privilege user

To boot to single-user mode with the system CD, passwd root can

A. Vi / etc/passwd file

Root:!:0:0::/:/bin/ksh

Daemon:!:1:1::/etc:

Bin:!:2:2::/bin:

Sys:!:3:3::/usr/sys:

Adm:!:4:4::/var/adm:

Uucp:!:5:5::/usr/lib/uucp:

Guest:!:100:100::/home/guest:

Ql:!:0:0::/home/ql:/usr/bin/ksh

Qinbj:!:0:0::/home/qinbj:/usr/bin/ksh

Nobody:!:4294967294:4294967294::/:

Lpd:!:9:4294967294::/:

Put root: after! Remove the number and turn it into

Root::0:0::/:/bin/ksh

B. Vi / etc/security/passwd

Root:

Password = AmMwUe2EQ491U

Lastupdate = 1054106568

Flags =

Daemon:

Password = *

Bin:

Password = *

Remove the information under root

Root:

Daemon:

Password = *

Bin:

Password = *

c. Restart the machine and enter a new passwd

Appendix:

The steps are as follows:

1. Add a user

two。 Manually modify user ID and group ID in the / etc/passwd file

3. Change user ID to 0. 0.

You can make changes to the user russ as follows:

Put russvuzvuxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Instead, change to: russVOUSRUSRUSERGUBING: russVOUBINGUBING UUSSUBINGUBING

Recovery after root user's password is lost

It is troublesome to reset the password when the root user's password is lost, and it is necessary to restart the machine. For security, root users' passwords must be properly set and kept.

Step 1: prepare the bootable AIX installation disc or installation tape media or local backup tape that is consistent with the current AIX system version and level of the machine, insert the CD or tape into the appropriate drive, and restart the system.

Step 2: make sure the boot device of the machine is changed to a CD or tape.

When an icon appears on the console screen or a beep is heard, press F1 repeatedly until the system Management Service (SMS) menu appears, and then follow the on-screen menu prompts.

Step 3: identify the console

Set the current terminal as the system console by pressing F1 and then pressing Enter.

Step 4: select the prompt language during installation

Select English as the prompt language by selecting 1 and then pressing Enter.

Step 5: this step is very critical. Don't make a mistake.

Screen display: Welcome to Base Operating SystemInstallation and Maintenance

1. Start install Now With Default Setting

2. Change/Show Installation Settings and Install

3. Start Maintenance Mode for System Recovery

Must select "3.Start Maintenance Mode for System Recovery"

Step 6: there are 4 options in the Maintenance interface:

1. Access a Root Volume Group

2. Copy a System Dumo to Removeable Media

3. Access Advanced Maintenance Function

4. Install From a System Backup

Should choose "1.Access a Root Volume Group"

Step 7: display a warning message on the next screen and select "0 Continue".

Step 8: select VG.

Press the number of VG, and then press enter.

Step 9: choose how to access rootvg.

Two options appear on the screen:

1. Access this volume group and start a shell

2. Access this volume group and start a shell before mounting filesystems

You should choose "1. Access this volume group and start a shell".

Step 10: at a command prompt, run the passwd command and reset the password for the root user.

Step 11: restart the system again. Run the following command: sync;sync;reboot

one。 Login root user prompt: "Your account hasexpired, please see system administrator." the main reason is: Your password hasexpired.

Recovery method 1 is as follows:

1. First put the first CD that corresponds to the installed operating system version of the machine into the optical drive.

two。 Check that the connection between the machine and the monitor and keyboard is intact

3. Restart the machine

4. Press 5 to boot from the default CD when the PowerPC icon appears on the monitor

5. You can see from the monitor that the boot device is / pci@fed00000/scsi@b/sd@4,0:\ ppc\ chrp\ bootfile.exe

Or words like / pci@fff7f08000/scsi@c/sd@8.0

Observe whether the light of the optical drive is flashing, which indicates that it is reading the contents of the CD.

6. Select this window as the console

7. Choose English as the display language

8. Enter the Start Maintenance Mode for System Recovery menu

9. Enter the Accessa Root Volume Group menu

10.Access a Root Volume Group

11.Access this Volume Group and start a shell

If you enter the command prompt, proceed to the next step

If you cannot enter, there are a lot of / etc/getrootfs [586] 4518 killed characters

You can try to change the CD or use the sysbase backup tape to boot until the command prompt appears

12.# passwd

Changing password for "root"

Root's New password:

Re-enter root's new password:

# vi / etc/security/passwd

Unknown: Unknown terminal type

# export TERM=vt100

# vi / etc/security/passwd

Root:

Password = 26sxY3194nOIQ

Lastupdate = 1135953716

Flags =

The password field in the is cleared, and the root password is set to empty

Save and exit

# sync

# sync

Synchronize twice

# shutdown-Fr restart machine root password is empty

Recovery method 2 is as follows:

1. First put the first CD that corresponds to the installed operating system version of the machine into the optical drive.

two。 Check that the connection between the machine and the monitor and keyboard is intact

3. Restart the machine

4. Press 5 to boot from the default CD when the PowerPC icon appears on the monitor

5. You can see from the monitor that the boot device is / pci@fed00000/scsi@b/sd@4,0:\ ppc\ chrp\ bootfile.exe

Or words like / pci@fff7f08000/scsi@c/sd@8.0

Observe whether the light of the optical drive is flashing, which indicates that it is reading the contents of the CD.

6. Select this window as the console

7. Choose English as the display language

8. Enter the Start Maintenance Mode for System Recovery menu

9. Enter the Accessa Root Volume Group menu

10.Access a Root Volume Group

11.Access this Volume Group and start a shell

If you enter the command prompt, proceed to the next step

If you cannot enter, there are a lot of / etc/getrootfs [586] 4518 killed characters

You can try to change the CD or use the sysbase backup tape to boot until the command prompt appears

12.#export TERM=vt100

13.#smit user enters and modifies expritation data to 0, restart and log in normally with root.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report