LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   going to single user mode while booting (https://www.linuxquestions.org/questions/linux-software-2/going-to-single-user-mode-while-booting-389317/)

phanee 12-04-2005 10:49 PM

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
__________________

T.Hsu 12-04-2005 11:40 PM

mount -o remount,rw /

after changing the password, use sync command to sync any change to the disk before rebooting.

T.Hsu 12-04-2005 11:41 PM

Sorry for the post twice.

bigrigdriver 12-04-2005 11:53 PM

Quote:

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.

vikrambhimbar 12-05-2005 01:23 AM

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.