LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 05-10-2008, 02:25 AM   #1
azadehfarshidi
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, 03:37 AM   #2
Takla
Member
 
Registered: Aug 2006
Distribution: Debian
Posts: 188

Rep: Reputation: 33
This thread offers a few solutions http://forums.debian.net/viewtopic.php?t=672

The method I've used for someone who forgot their password in Ubuntu was
Quote:
add
Code:
init=/bin/sh
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

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

Code:
exec init
Reboot and you can log in with the password you just set.
 
Old 02-10-2009, 03:28 AM   #3
whwillisiv
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
Code:
mount -o remount,rw /
thing, then enter
Code:
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
 
  


Reply

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


All times are GMT -5. The time now is 10:38 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