AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unless you have a security hole that lets you break in as root, there is no way without rebooting (makes sense - otherwise what would the point of having a root password be).
Security holes (which you should fix if you have them) might include a /.rhosts file giving someone remote access as root, a world-writeable root-owned SUID file or something like that.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.