LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-13-2007, 12:58 PM   #1
Letere
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
Unhappy Forgot Logon User & Password to get on Linux Laptop


Hi, I installed a version of Linux (Gentoo) on an old Dell laptop couple years ago to learn Linux and sparingly used it. Now I try to get back, but unfortunately, I forgot my User ID as well as Pwd to boot it up. Please any suggestion would be much appreciated. Thanks, TL
 
Old 04-13-2007, 01:25 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Google for 'lost password' or 'single user'; http://www.google.com/linux
 
Old 04-13-2007, 06:00 PM   #3
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
you could look here, it lists quite a few methods: http://linuxgazette.net/107/tomar.html
Also search the forums. There are lots of topics regarding this.

If you say it's a few years old, and you never updated it, I would recommend a fresh install with a new up-to-date version...
 
Old 04-13-2007, 07:15 PM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
If you know your root password, you can boot into terminal mode and log in as root, or choose to log into failsafe terminal or similar at the logging and run command:
Code:
adduser xxxx
You would replace the xxxx with the name of another user to add and log in as the new user, you can then transfer any files from the old user's home to the new as root and delete the old user in administrative tasks.
 
Old 04-13-2007, 11:30 PM   #5
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
Or better yet, boot into single user mode, and cat /etc/passwd and look for the user name in there. Once you've found it, as root do passwd -l username and off you go

-Kristijan
 
Old 04-13-2007, 11:38 PM   #6
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: 62
If the installation is a couple years old, you might also consider just doing a fresh install of a current distro. Consider it a re-introduction.
 
Old 04-13-2007, 11:48 PM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Kristijan
I have this little box I found at the recycle depot, I use it for testing all kinds of stuff. So when I seen your recommendation I fired it up, it's a dual boot now with XP Pro and Mandrake 10.2. I booted into single user mode and tried that, and this is what resulted:

Code:
Locking password for user jo.
passwd: Success
Now jo can't log in, it was easy to type jo, looks like the user is now going to be ho.
 
Old 04-13-2007, 11:57 PM   #8
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I logged in as root and issued command:

passwd -u jo

Now jo can log in, good thing, I did not want to be ho.
 
Old 04-14-2007, 02:13 AM   #9
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
Junior Hacker,

My mistake, I've been using NetBSD a fair bit recently, and just took a look at the man page.

passwd -l <user> changes the password for that user account. Under Linux however, it locks the user out...go figure

-Kristijan
 
Old 04-14-2007, 02:19 AM   #10
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I was really worried there for a while, because one would have to stretch the index finger more to the left to type "ho", that's inefficient.
 
Old 04-17-2007, 07:31 AM   #11
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 820

Rep: Reputation: 197Reputation: 197
If you had dual boot and lilo, linux -s would get you in.

OK

End
 
  


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
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
How to force a user/password prompt to logon? binary66 Puppy 5 09-08-2006 05:50 AM
forgot my user password Avatar Linux - General 3 01-24-2005 03:48 PM
Forgot my user account password Gilbert Linux - Newbie 1 02-22-2004 11:51 PM


All times are GMT -5. The time now is 04:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration