LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   what to do when forgot your password? (https://www.linuxquestions.org/questions/linux-general-1/what-to-do-when-forgot-your-password-205834/)

isamitch 07-16-2004 09:35 AM

what to do when forgot your password?
 
Hello

Okay, so I am using slackware linux 9.1 here at work and i have been trying to get it running as the email server. I have been using www.qmailrocks.org to get it all set up and in part six (http://www.qmailrocks.org/vqadmin.htm) is where you set the domain and password stuff.

I wasn't able to completely set up where I stored my password like how they did it on the website because of some problems. so i stored that in a different file. But, I wrote that all down so in case i forgot i could look it up....then my coworker threw away that piece of paper and now i think i'm in trouble.

I want to go back through that section and just set the password and stuff again, but will it realize that i've done it now somewhere else? or will it still want the previous one that i don't remember where i put it?

Thank you for your help!

Isa

oneandoneis2 07-16-2004 10:03 AM

Can't you just look in the .htaccess file and find where the AuthUserFile field points to? That should be where it's stored your password..

isamitch 07-20-2004 03:31 PM

Thank you for your suggestion. However, when i check there, I was not given anything like a password that I would have made up.

Any more suggestions would be very welcome! Thank you for all your patience!

SBing 07-20-2004 04:07 PM

When you looked at the password, was it a 13 character long set of random characters? If so it's likely that it is stored as the standard DES password.
You'll either need to brute force decrypt it (fun!) or replace it with another DES encrypted password. :)

isamitch 07-21-2004 01:54 PM

ummm..no I never saw a 13 random character set.....I didn't really see anything that looked like a password. Am i looking in the wrong place if i just type "vi .htaccess" ?

Thanks a lot

oneandoneis2 07-21-2004 02:22 PM

Copy the output you get from that into this thread and we might be able to tell you :)

isamitch 07-22-2004 09:20 AM

ahhhh yeah, sorry about that! Here it is :)

If you can make any sense out of all this...that'd be so awesome!

ectory "/var/qmail/bin/qmail-newu/vqadmin">
deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
</Directory>


~
~
~
~
~
~
~
~
~
~
~
and I got this after typing vi .htaccess I have no idea if there is something else i should type to get the password i'm looking for......

Thanks so much!

oneandoneis2 07-22-2004 10:54 AM

Yup, that doesn't help much, does it? :)

Oookay, so what about the file /var/www/cgi-bin/vqadmin/.htaccess

Does it exist, and if so, what's in it? Does it have a AuthUserFile field?

isamitch 07-22-2004 03:27 PM

Thanks so much!

Okay so I typed vi var/www/cgi-bin/vqadmin/.htaccess


and this is what I got:

uthType Basic
AuthUserFile /usr/local/apache/conf/vqadmin.passwd
AuthName vQadmin
require valid-user
satisfy any
~
~
~
~
~
~
~
~
~
~
~
~
~
~

and um....I'm not too sure about what to do next :(

Thanks for all your help!

Isa
~

oneandoneis2 07-22-2004 04:23 PM

That's it! :)

/usr/local/apache/conf/vqadmin.passwd is the file your password is stored in!

isamitch 07-23-2004 09:30 AM

Thanks so much for your help! But I think i'm still having some trouble. I tried opening /usr/local/apache/conf/vqadmin.passwd in my vi editor and i got pretty much a blank screen. Should I have done something else? It kind of looks like my password isn't there :(

Okay, thanks so much again for all yourhellp!

SBing 07-23-2004 01:57 PM

Could you try:

$ su (enter the root password when prompted)
# less /usr/local/apache/conf/vqadmin.passwd

What is the output of

$ ls -l /usr/local/apache/conf/vqadmin.passwd


All times are GMT -5. The time now is 11:41 AM.