Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: WEBlance on August 24, 2004, 09:32:55 PM
-
Why doesn't it work when I set 'Public access via web or anonymous ftp' to 'Entire internet (password required)'?
When I enter the username/password popup just shows again asking for the information again!
Please help
/Carl :cry:
-
Why doesn't it work when I set 'Public access via web or anonymous ftp' to 'Entire internet (password required)'?
Because you didn't read the manual ;-)
The login ID is the name of the ibay, not a user name. If you want to have per-user authentication, you'll need to use a .htaccess file in the root of your ibay.
Michiel
-
:oops: Thanx!
Does the manual say anything about how to use per-user authentication (.htaccess) or can you please help me with this??!??
-
OK:
1/ Download http://www.ibiblio.org/pub/Linux/distributions/smeserver/contribs/nightspirit/e-smith-htaccess/e-smith-htaccess-1.1-2.noarch.rpm
2/ log in as root
3/ rpm -Uvh e-smith-htaccess-1.1-2.noarch.rpm
4/ cd /home/e-smith/files/ibays/youribay/html
5/ pico .htaccess (note the leading dot!)
AuthName "My top-secret ibay"
AuthType Basic
AuthUserFile /home/e-smith/files/ibays/youribay/html/users
AuthGroupFile /home/e-smith/files/ibays/youribay/html/groups
require group secretclan
6/ chmod 664 .htaccess
7/ htpasswd -c users firstuser
8/ htpasswd users seconduser
9/ etc...
10/ pico groups
secretclan: firstuser seconduser
11/ chmod 664 groups
12/ etc/init.d/httpd gracful
That's about it, I think. If you want more background info, just google for .htaccess and you'll find tons of pages explaining all this stuff in more detail than you might care to know. Let us know if you get it working.
Michiel
-
Thank You very much! This just did the trick. I will now rest peacefully tonight knowing my website is secure.
Carl :-D