Password Protected feature problem.

ilessons

New Member
Messages
2
Reaction score
0
Points
0
Hi,

I am having a trouble with the password protection of directories. I password protect a directorty and when try to access it with the user name and password it doest redirect to a page. When entered the right user name and password it ask me again to enter and after couple of attempts shows a following error.
"Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."


Anyone any clues? I have tried deleting and re adding the username and password. Thanks
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Check the .htaccess in the directory involved. You might want to check any parent directories too.

AuthType Basic
AuthName "xxxxxxxxxxx"
AuthUserFile "/home/xxxxxxxxx/.htpasswds/public_html/xxxxxxxxxxx/passwd"
require valid-user

is what you are looking for.


Also look in /home/yourusername/.htpasswds or subdirectories for any password files.
 
Last edited:

ilessons

New Member
Messages
2
Reaction score
0
Points
0
Check the .htaccess in the directory involved. You might want to check any parent directories too.

AuthType Basic
AuthName "xxxxxxxxxxx"
AuthUserFile "/home/xxxxxxxxx/.htpasswds/public_html/xxxxxxxxxxx/passwd"
require valid-user

is what you are looking for.


Also look in /home/yourusername/.htpasswds or subdirectories for any password files.

Problem is that when i save htaccess file and htpasswd..they disappear when i refresh..thanks
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
1. Usually, .yadda files are hidden. You have tell the system to show them.
2. cPanel.
a. First screen, bottom of page, click reset all interface settings
b. Click on FileManager
c. Popup will appear, File Manager Directory Selection .
d. check Show Hidden Files (dotfiles)
3. Most FTP clients show dot files. If yours doesn't , try to find a configuration setting to enable.
 
Top