Koozali.org: home of the SME Server

Problems with I-bay

WEBlance

Problems with I-bay
« 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:

Michiel

Problems with I-bay
« Reply #1 on: August 25, 2004, 02:19:00 PM »
Quote
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

WEBlance

Problems with I-bay
« Reply #2 on: August 25, 2004, 02:48:25 PM »
:oops:  Thanx!

Does the manual say anything about how to use per-user authentication (.htaccess) or can you please help me with this??!??

Michiel

Problems with I-bay
« Reply #3 on: August 25, 2004, 10:41:21 PM »
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!)
Code: [Select]
  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  
Code: [Select]
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

WEBlance

Problems with I-bay
« Reply #4 on: August 26, 2004, 10:12:38 PM »
Thank You very much! This just did the trick. I will now rest peacefully tonight knowing my website is secure.

Carl   :-D