LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Forgotten sudo (su) and user password for app install etc... (https://www.linuxquestions.org/questions/linux-newbie-8/forgotten-sudo-su-and-user-password-for-app-install-etc-4175534270/)

nailshock 02-17-2015 07:31 AM

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!

TenTenths 02-17-2015 08:54 AM

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.

fatmac 02-17-2015 12:30 PM

...or maybe 'passwd', depends on distro.:)

TenTenths 02-17-2015 12:54 PM

Quote:

Originally Posted by fatmac (Post 5318859)
...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! ;)


All times are GMT -5. The time now is 01:12 PM.