LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 07: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, 07:30 PM   #2
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Slackware 10.2 Fluxbox 2.6.17.6
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, 09: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, 10:00 PM   #4
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Slackware 10.2 Fluxbox 2.6.17.6
Posts: 419

Rep: Reputation: 30
can you elaborate on "not getting the proper shell"?
 
Old 08-28-2006, 03: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, 08:51 PM   #6
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Slackware 10.2 Fluxbox 2.6.17.6
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, 08:27 AM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
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 11:28 PM
Cannot set root password zener Ubuntu 11 01-27-2007 01:40 PM
Change Colors and set password on Lilo thenowherekid Linux - Newbie 3 08-26-2005 03:22 AM
What should I do to set root password backpacker Linux - Newbie 1 06-10-2005 04:19 AM
Change Root password on Grub 0.94 mikeshn Linux - General 5 03-10-2005 12:09 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration