LinHES Forums
http://forums.linhes.org/

Recreating the htdigest file
http://forums.linhes.org/viewtopic.php?f=5&t=9616
Page 1 of 1

Author:  tick [ Thu Apr 13, 2006 10:17 pm ]
Post subject:  Recreating the htdigest file

new to linux and sorry if this is to easy of a question but I read a couple other posts on recreating the passwords for the mythweb which refer to running htdigest to change the password and when I try to do the same I get access denied. Does mythtv need to be closed before I can run the htdigest?

Author:  ryanpatterson [ Fri Apr 14, 2006 6:03 am ]
Post subject: 

You have to log in as root. Or run the "su" command and type in the root password to access the htdigest file.

Author:  tick [ Fri Apr 14, 2006 3:48 pm ]
Post subject: 

Thanks, I was able able to recreate the file or at least it appeared I did. The main probelm I am having is logging into mythweb. I can connect just fine but when I type in my user name and password it's not taking it. I checked the error.log file and what it tells me is that -
user 'mythuser' in relam 'MythTV' not found: /mythweb

I have used firefox and explore but niether make a difference.

any thoughts on what to try or check?

Author:  ryanpatterson [ Fri Apr 14, 2006 4:43 pm ]
Post subject: 

You must have modified something since the install. The important files are:
/etc/apache/httpd.conf
/var/www/htdigest
/var/www/mythweb/htaccess
To me it sounds like your htdigest file still isn't correct. I just "deleated" mine and I got the same error as you. Try the following:
Code:
su
cd /var/www
rm htdigest
htdigest ./htdigest MythTV mythtv
chmod +stx htdigest

And tell us what happens when you try to log in after that.

Author:  tick [ Fri Apr 14, 2006 8:02 pm ]
Post subject: 

Okay, I got thru to the <rm htdigest> step but on the next line <htdigest ./htdigest MythTV mythtv> it returned with <Could not open passwd file /htdigest for reading> and also to use the -c to create a new one. When I did the <chmod> it returned that no such file existed. Trynig to use some logic I figured since I removed htdigest in the first step and it didn't create it in the next one that I would use the -c again. It didn't make a difference.

I looked to make sure the main files you listed were actully in the directories and noticed that the htdigest file was in the / directory(I don't believe it's the root but the directory up from that, I know, amature!) and that file was not where it should be /var/www/ .

Looks to me that its not creating the file where it should be. There is a hdiggest file in there.

Author:  tick [ Fri Apr 14, 2006 8:43 pm ]
Post subject: 

Hold the presses. I got it working. Turns out that I had the htaccess file incorrect.

this is what I uncommented in the file-

AuthType Digest
AuthName "MythTV"
AuthDigestFile /var/www/htdigest
Require valid-user


Connected the dots of what you were having me try and from another post in the forum. Thanks for the help!

Author:  ryanpatterson [ Sat Apr 15, 2006 8:42 am ]
Post subject: 

tick wrote:
but on the next line <htdigest ./htdigest MythTV mythtv> it returned with <Could not open passwd file /htdigest for reading> and also to use the -c to create a new one.

Ohh sorry I forgot to inculde the -c before the file name. With out it htdigest thinks you want to add on to another file. Which is not what I indended to have you do.

Good that you got it working.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/