LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-07-2007, 11:12 AM   #16
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60

Quote:
You could use a Live CD...
I know it could be done using a Live CD, but I'm uncomfortable with the idea that anyone who can reboot and see the Grub login screen could trivially gain root access. As I said, I have not been able to accomplish it, but if it can be done, on an up-to-date Debian (Etch) system, I want to know.
 
Old 03-14-2007, 10:33 PM   #17
BillyGalbreath
Member
 
Registered: Nov 2005
Location: Houston Texas
Distribution: Debian Sid
Posts: 379

Rep: Reputation: 31
I just now remembered because I had to do it... But I _knew_ there was a way to get into a Debian box from grub.. Instead of booting with 'single' or '-s' which asks for a password, boot with this:

Code:
init=/bin/bash
I was unable to change my password this time (I have brain farts often) because I could not remember how to remount / as writable... But once its up, just remount the root partition as writable and then run 'passwd' to change the password.

Simple.
 
Old 02-18-2009, 11:02 PM   #18
handydan
Member
 
Registered: Mar 2005
Location: palmdale, california
Distribution: MEPIS 8; Debian (stable/testing)
Posts: 83

Rep: Reputation: 23
root reset without single user mode

at the grub prompt, edit the boot option line to include

Code:
init=/bin/sh
Then do
Code:
mount -o remount,rw /
And then the point of the exercise....
Code:
passwd root
and
Code:
sync&&reboot
 
Old 02-18-2009, 11:28 PM   #19
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Did you realize this was originally from 2005 and most recently from 2007?
 
  


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
anyone can change my root or user password? coolblue Linux - Newbie 16 10-09-2005 04:51 AM
Can unlock screen with root password in my user account - want to change this sm1 Linux - Newbie 2 07-24-2005 06:54 AM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 10:59 AM
Password change for root? akihandyman Mandriva 1 08-25-2004 11:29 PM
when i change root password ,it says: BRAHmS Linux - General 0 05-11-2004 10:15 PM


All times are GMT -5. The time now is 05:28 AM.

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