LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-04-2005, 10:49 PM   #1
phanee
Member
 
Registered: Aug 2005
Location: Melbourne, Australia
Posts: 39

Rep: Reputation: 15
Question 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
__________________
 
Old 12-04-2005, 11:40 PM   #2
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
mount -o remount,rw /

after changing the password, use sync command to sync any change to the disk before rebooting.
 
Old 12-04-2005, 11:41 PM   #3
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
Sorry for the post twice.

Last edited by T.Hsu; 12-04-2005 at 11:42 PM.
 
Old 12-04-2005, 11:53 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,689

Rep: Reputation: 286Reputation: 286Reputation: 286
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.
 
Old 12-05-2005, 01:23 AM   #5
vikrambhimbar
Member
 
Registered: Aug 2005
Location: India
Posts: 33

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Preventing Linux from booting in Single User Mode LinuxSeeker Linux - Security 8 08-28-2009 07:12 AM
how to go to single user mode while booting phanee Linux - Security 2 12-04-2005 11:49 PM
single user mode while booting ravikumarG AIX 4 08-17-2005 01:57 AM
single user mode ? wr3ck3d Slackware 5 03-29-2003 09:52 AM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 12:17 PM


All times are GMT -5. The time now is 02:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration