Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-10-2008, 01:25 AM   #1
LQ Newbie
Registered: May 2008
Location: Tehran, Iran
Distribution: Ubuntu 7.10
Posts: 1

Rep: Reputation: 0
Unhappy Need password recovery help! debian lenny/sid

I installed it a few days ago and because I didn't work on it since that day, I've forgotten the password I set.
Is there any thing I can do to recover my password, or I have to reinstall the OS?
Old 05-10-2008, 02:37 AM   #2
Registered: Aug 2006
Distribution: Debian
Posts: 188

Rep: Reputation: 33
This thread offers a few solutions

The method I've used for someone who forgot their password in Ubuntu was
to the kernel command line (in grub press E to edit the kernel boot parameters, add the change, press return, press b to boot)

the thing will start booting but pretty quickly will drop you at a shell from that shell do the following

mount -o remount,rw /
passwd yourusername
(enter the new password)

exec init
Reboot and you can log in with the password you just set.
Old 02-10-2009, 02:28 AM   #3
LQ Newbie
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
forgot username and password

i had forgotten my username as well,
eventually found it, but because this thread was the first i came to, i figured it might be someone else's first as well

when you get to the shell, do the
mount -o remount,rw /
thing, then enter
ls /home
this will bring up a list of usernames on your box, decide which is yours and proceed to reset using instructions listed above


password, recovery

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
Downgrading from Sid to Lenny hobo1 Debian 5 04-02-2008 10:45 PM
LXer: Installing Debian lenny/sid on Fujitsu Lifebook P7230 LXer Syndicated Linux News 0 11-24-2007 09:20 AM
Various problems with xorg 7.2 under debian (Lenny/Sid) with i810 driver. adz Debian 5 07-22-2007 07:55 AM
HAL not starting on Lenny/Sid adz Debian 10 07-22-2007 03:36 AM
Enabling direct rendering for beryl on an nvidia card? (Debian Lenny/Sid) Hungry ghost Debian 7 07-08-2007 12:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration