AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
If you have the ability to FTP as a user (admin, or some such) with read/write access to /etc/passwd on the box you could ftp to the box and get the /etc/passwd file, edit it removing the password for root (or the * if using shadowed passwords) and then ftp it back to the server. This will set the root password to NULL and you'll be able to get into the box.
Originally posted by zorba4 Right, loose, rebooting in maintenance shell is the only way.
@fancy : bad luck, you need to be logged as root in order to use the standard unix "passwd root" command.
You know, thinking about this for a couple more minutes there could be another way. Just a wild shot in the dark, but this might work If you have a user in passwd group you might be able to change root's password with that user. [I]Might[I/]. Never tried it so I'm guessing here.
No, you cannot reset from the SMS menu. The filesystem need to be mounted first. Any bootable media at the correct OS level (and patches) will work. The most common is a recent (mksysb) backup as it will have the correct drivers.
Once you get into the startup menu's (having selected a tape or a DVD backup to boot from, AIX will prompt (unless backups are setup to restore handsfree) and ask if you want to restore the backup, or go into maintenance mode.
Choose maintenance mode, and IPL varyon rootvg, and start a shell.
With the filesystems mounted (you can choose to start a shell without mounting the filesystems) just use the passwd command to change the password.
use the command sync to force the changed password to disk.
use the command reboot to restart the system and let AIX boot normally from the harddisk.
As looseCannon suggested:
If you have a user setup with the role "ManageAllPasswds" that user will be able to use the command pwdadm to change the root password.