LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 02-12-2011, 10:19 PM   #1
smturner1
Member
 
Registered: Oct 2009
Location: MI
Distribution: Arch 2.6.35
Posts: 107

Rep: Reputation: 1
Forgot my Username and Password on Arch


Its been since October since I accessed my Arch OS, due to a career and geographical move. Since that time I forgot my username and password (including root).

My question is, is there a way to get around it without starting from scratch? Oh yeah, my backup live CD is 700 miles away! lol I can only guess what the answer is going to be........start over!?

Any help would be great.


Shaun
 
Old 02-12-2011, 10:26 PM   #2
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
Quote:
Originally Posted by smturner1 View Post
Its been since October since I accessed my Arch OS, due to a career and geographical move. Since that time I forgot my username and password (including root).

My question is, is there a way to get around it without starting from scratch? Oh yeah, my backup live CD is 700 miles away! lol I can only guess what the answer is going to be........start over!?

Any help would be great.


Shaun
insert your install disk.

drop to command line..

check the partition of your installed box.

make a dir

mount your box in that dir.
check /etc/passwd
look for your username/login
then issue passwd to reset
 
Old 02-12-2011, 10:27 PM   #3
tiredofbilkyyaforallican
Member
 
Registered: Aug 2010
Location: 3rd rock from the sun
Distribution: LMDE/Peppermint/Mint 9,&10/along with a few others
Posts: 152

Rep: Reputation: 22
Unfortunately the only thing I can suggest is ...yup you guessed it start fresh. There is a problem in the forum giving out that kind of help as (don't take this the wrong way )we really don't know if it is your computer or if you are trying to hack into someone else's...Therein lies the dilemma.
 
Old 02-13-2011, 01:23 PM   #4
Dunkelschorsch
LQ Newbie
 
Registered: Aug 2009
Distribution: Arch Linux
Posts: 7

Rep: Reputation: 0
Actually, you don't have to start fresh. I assume you are using grub as you bootloader. Do the following:
When at the kernel selection, go into edit mode and append
Code:
init=/bin/sh
to the line that starts with linux.
Continue booting and you will eventually be dropped to a shell. Type
Code:
mount -o remount,rw /
to allow write access to your root filesystem. Then, a simple
Code:
passwd <username>
will let you change your login password for the user <username>, without knowledge of the old pw. Also worsk for root, of course.
Reboot and you will be able to login again.

@tiredofbilkyyaforallican:
I don't see any violation of the forum guidelines here. The information I posted is available throughout the internet in numerous places. Neither do I encourge or empower anyone to do anything illegal. Since smturner1 obviously has physical access to the machine in question, I assume he gained it in a legitimate way. So holding back this information, just because there is the remote chance that he uses it to cause mieschief doesn't seem acceptably to me.

Last edited by Dunkelschorsch; 02-13-2011 at 01:41 PM. Reason: clarification
 
Old 02-13-2011, 06:50 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,540

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
I get around the issue by using the same user/password - I do a lot of installs, and making them all different would be a nightmare.
There are exceptions, but they're the minority, and easy(er) to remember.
 
Old 02-13-2011, 09:32 PM   #6
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Rep: Reputation: 50
Quote:
Originally Posted by syg00 View Post
I get around the issue by using the same user/password - I do a lot of installs, and making them all different would be a nightmare.
There are exceptions, but they're the minority, and easy(er) to remember.
hehe ++1 i always use the same password and user on all my accounts and all my OS installs
 
Old 02-13-2011, 09:41 PM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
hehe ++1 i always use the same password and user on all my accounts and all my OS installs
When I setup systems I record passwords in safe place, Now I can't think of anymore passwords to use, I guess I'll go green and RECYCLE.
 
  


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
[SOLVED] forgot username and password Help harnetto Debian 5 08-31-2010 12:12 AM
I forgot both my username and password for Linux mse100% Linux - Security 5 01-22-2007 04:11 PM
forgot username and password Rector K Linux - General 6 05-28-2006 08:45 PM
Forgot Username And Password! tyledogg Linux - Newbie 4 04-10-2004 01:30 PM
forgot username and password :) nightblade Linux - Software 6 07-16-2003 12:51 PM


All times are GMT -5. The time now is 04:36 PM.

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