going to single user mode while booting
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 __________________ |
mount -o remount,rw /
after changing the password, use sync command to sync any change to the disk before rebooting. |
Sorry for the post twice.
|
Quote:
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. |
Hi,
Try typing " single " at linux kernel Bootup parameters.... It will mount file system in r/w mode and then use command passwd to change root password... this should work with groub |
All times are GMT -5. The time now is 05:41 PM. |