Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-04-2005, 10:46 PM
|
#1
|
Member
Registered: Aug 2005
Location: Melbourne, Australia
Posts: 38
Rep:
|
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.
|
|
|
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
Rep:
|
when you get to the command prompt, do
Code:
mount -n -o remount,rw /
This will remount in read-write
|
|
|
12-04-2005, 11:49 PM
|
#3
|
LQ Newbie
Registered: Dec 2005
Posts: 7
Rep:
|
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 12:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|