LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   how to go to single user mode while booting (https://www.linuxquestions.org/questions/linux-security-4/how-to-go-to-single-user-mode-while-booting-389316/)

phanee 12-04-2005 10:46 PM

how to go 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

microsoft/linux 12-04-2005 11:15 PM

when you get to the command prompt, do
Code:

mount -n -o remount,rw /
This will remount in read-write

dnvikram 12-04-2005 11:49 PM

Here's a much better fix
 
Do these steps to change the root password ..This is much more simple..at the grub loader page...select the linux option and type the letter ,"a" which is appending ...it will now give a prompt..grub prompt...there append the word "linux single" and hit return...Please use widot the quotes....now it will boot in single user mode..there,type the command,"passwd" and hit return and then it will prompt u for new password...Inorder to secure the grub loader and making ur system much more secure....change the permissions of the /etc/grub.conf ..give 600 as the permissions and then run the /sbin/grub-md5-crypt command to generate a md5 hash and now paste that into the /etc/grub.conf ..and from the next time someone tries to boot or change root pasword,they will have to enter the grub password...

hope this clears ur problem...adios!

DNV


All times are GMT -5. The time now is 02:25 AM.