LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 12-04-2005, 11:46 PM   #1
phanee
Member
 
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 11:47 PM.
 
Old 12-05-2005, 12:15 AM   #2
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 45
when you get to the command prompt, do
Code:
mount -n -o remount,rw /
This will remount in read-write
 
Old 12-05-2005, 12:49 AM   #3
dnvikram
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 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
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Preventing Linux from booting in Single User Mode LinuxSeeker Linux - Security 8 08-28-2009 08:12 AM
single user mode while booting ravikumarG AIX 4 08-17-2005 02:57 AM
single user mode... navaladi Mandriva 2 12-26-2004 03:41 AM
single user mode ? wr3ck3d Slackware 5 03-29-2003 10:52 AM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 01:17 PM


All times are GMT -5. The time now is 02:03 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