Originally Posted by phanee
someone have changed the root password of the linux server. i need to change that now. i need to go to single user mode while booting. for that i changed the grub booting parameter as
Kernel ........... /single init=/bin/sh
it is going to the single usermode but the filesystem is readonly. it is not accepting the command passwd
this is for Redhat linux 9.0
what should i give for the grub parameters while booting sothat the filesystem will become rw sothat i can change the password. its urgent
thanks in advance
If you follow these instructions, you should be able to change the password before booting.
Recover root password
If you have ever forgotten the root password for any of your machines you know what a hassle it can be. If you have direct access to the machine and it is using the Grub boot loader it is very easy to change the password.
All you need to do is reboot the machine. When you are presented with the Grub menu, hit the 'e' key. This will allow you to edit the current boot options. Add the ' single' to the line that begins with 'kernel /vmlinuz'. Now press 'b' to boot with the modified boot options.
You'll now be presented with the command line. At the command line simply enter 'passwd'. You'll be prompted, twice, for a new password.
Type in 'exit' and the machine will continue booting into the normal process. Your root password has now been changed.