LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-27-2006, 06:22 PM   #1
sheelnidhi
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Rep: Reputation: 0
change Root Password even if the password in the grub is also set


How can i change Root Password even if the password in the grub is also set and as a result of this i am not able to enter in to run level 1 and also when entering into rescu mode passwd command does not work,

plese any one help.

thanks,
Sheelnidhi
 
Old 08-27-2006, 06:30 PM   #2
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
try booting off a live cd and either chrooting to the drive or just blank out the root pass in /etc/shadow.
 
Old 08-27-2006, 08:54 PM   #3
sheelnidhi
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Not Done

But in this case I would not be geting the proper shell and then I have to reset the shell again ,,,
and also can u help me in proving me how to enable the password for GRUB in a runnning machine ,,, as i have got one method is that I can change to the /etc/inittab and set the run level to 1 and then it will be easy to do but is there any other way to do.
 
Old 08-27-2006, 09:00 PM   #4
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
can you elaborate on "not getting the proper shell"?
 
Old 08-28-2006, 02:14 PM   #5
sheelnidhi
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
IF you edit the root password in the /etc/shadow file it may not let you to get the bash shell
 
Old 08-28-2006, 07:51 PM   #6
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
well then get into a root shell off a boot cd, chroot to the mounted drive, and passwd a new password in.
 
Old 08-30-2006, 07:27 AM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
Cannot set root password zener Ubuntu 11 01-27-2007 12:40 PM
Change Colors and set password on Lilo thenowherekid Linux - Newbie 3 08-26-2005 02:22 AM
What should I do to set root password backpacker Linux - Newbie 1 06-10-2005 03:19 AM
Change Root password on Grub 0.94 mikeshn Linux - General 5 03-10-2005 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration