Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-04-2005, 10:46 PM   #1
Registered: Aug 2005
Location: Melbourne, Australia
Posts: 39

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

Last edited by phanee; 12-04-2005 at 10:47 PM.
Old 12-04-2005, 11:15 PM   #2
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
when you get to the command prompt, do
mount -n -o remount,rw /
This will remount in read-write
Old 12-04-2005, 11:49 PM   #3
LQ Newbie
Registered: Dec 2005
Posts: 7

Rep: Reputation: 0
Here's a much better fix

Do these steps to change the root password ..This is much more the grub loader the linux option and type the letter ,"a" which is appending will now give a prompt..grub prompt...there append the word "linux single" and hit return...Please use widot the 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!



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

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
single user mode while booting ravikumarG AIX 4 08-17-2005 01:57 AM
single user mode... navaladi Mandriva 2 12-26-2004 02:41 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 > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:33 AM.

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