LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-17-2015, 07:31 AM   #1
nailshock
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
Forgotten sudo (su) and user password for app install etc...


Hi,
After a long time of about 5 months without my PC and Win7 which I havent had the time to really check out whats wrong with / I am back on a slow laptop with 256 of RAM, PIIIM on 1113MHz which I had for years, and tried out a few lighweight distros after getting rid of Win XP.
Now, I am running on anti x which I found to be a great OS, speedwise as it could be on such a slow machine.
My problem though is I forgot my root pass and my user pass which seem to be different from each other because I remember I could use terminal to update but not the antix Control Center which keeps asking me for a different pass. Any help in getting the both back so I wouldn't have to re-install and before doing a re-install doing a backup?

It's a pain in the ass, since I basically use(d) this laptop for writing, and there are files of plenty.

Ty in advance.

Cheers and good luck!

Last edited by nailshock; 02-17-2015 at 07:32 AM.
 
Old 02-17-2015, 08:54 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,356

Rep: Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833
Boot in single-user mode and then use setpass to set your root password and then setpass <username> to set the password for <username> and then restart as normal.
 
Old 02-17-2015, 12:30 PM   #3
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: AntiX.
Posts: 1,760

Rep: Reputation: Disabled
...or maybe 'passwd', depends on distro.
 
Old 02-17-2015, 12:54 PM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,356

Rep: Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833
Quote:
Originally Posted by fatmac View Post
...or maybe 'passwd', depends on distro.
You are absolutely right, brain fade on my part. I've no idea why setpass came out of my keyboard!
 
  


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 reset (forgotten) user password? Cartech3 Linux - Newbie 6 02-05-2012 01:31 AM
[SOLVED] Windows User Password Forgotten - Linux Recovery? jaycee4 Linux - General 6 09-27-2010 09:23 AM
forgotten user name and password mythdora 10.21 theacerguy Linux - General 1 05-12-2009 10:20 AM
I have Forgotten my user password aditya2050 Linux - General 3 07-01-2008 11:36 AM
Forgotten user password Suse_Newbie69 SUSE / openSUSE 2 01-03-2007 07:12 PM


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