Password protect directory - which login details?

I´m trying to protect a directory following these guidelines: http://www.virtualmin.com/documentation/tutorial/how-to-password-protect-directory

I´m prompted for a password, but I´m not sure which login details I should use. The Virtualmin user details don´t work.

In the directory I want to protect an .htaccess file was created with the following rules:

AuthUserFile "/home/user/public_html/test/htusers" AuthType Basic AuthName "This is the text that the user will see when being prompted for a password." require valid-user

However the htusers file is empty.

Did something go wrong or am I supposed to manually add users?

Thanks for your help!

Howdy,

Hmm, it looks like a step may be missing from those directions!

You’re right, you need to specify which users would be allowed to access the directory.

To do that, go into Edit Mail and FTP Users, and select the user you wish to give rights to see that directory.

Once you do, click “Other User Permissions”, and you should see an option named "
“Allow access to web directories”. There, you can specify which protected directories that user should be allowed to access.

-Eric

Great, I´ll do that,. Thanks Eric.

Looks like that step is still missing at http://www.virtualmin.com/documentation/tutorial/how-to-password-protect-directory

Why don’t you make those docs like a Wiki so users can add stuff. I would have been happy to do so…

Nuts, you’re absolutely right. That’s fixed now :slight_smile: