I followed the Apache Week article "Publishing Pages with PUT", and all
ran fine right out of the box. When I went to add a little security to
this, I lost my PUT. I now get the following error:
Error Publishing File
An error occurred publishing this file
(Cannot write to /users/elf/public_html/COPYRIGHT.html).
The changes I made were all to the access.conf file:
# make the PUT script available only to group putusers
<Location /cgi-bin/putscript*>
AuthType Basic
AuthName Authorised PUT Publishers
AuthGroupFile /opt/apache/.putusers
AuthUserFile /opt/apache/.putpasswords
require group putusers
</Location>
<Directory /users>
Options Indexes IncludesNoExec FollowSymLinks MultiViews
AllowOverride FileInfo AuthConfig Limit
order allow,deny
allow from all
# limit PUT
AuthType Basic
AuthName Authorised PUT Publishers
AuthGroupFile /opt/apache/.putusers
AuthUserFile /opt/apache/.putpasswords
Script PUT /cgi-bin/putscript
<Limit PUT>
require group putusers
</Limit>
</Directory>
The /opt/apache/.putusers file contains
putusers: lawson elf
The /opt/apache/.putpasswords file contains:
lawson:not_my_real_encrypted_password
elf:not_my_real_encrypted_password
Both these files are readable by all. The ~elf/public_html directory
is writable by elf only (755 elf:users). I don't think I made the
stupid mistake....
I'm not trying to have the tightest security possible, but I'd like to
have a easily implemented amount. I was guessing on the <Location> stuff.
Was this the way to go? Where did I mess up.
Thanks, I'm just a parent volunteer at my kids school trying to make
web publishing easier for them. I'm new to httpd stuff, but learning quick!
Any help will be greatly appreciated by 300 kids.
--------