You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Lawrence, Sean" <sl...@seveninteractive.com> on 2001/12/18 22:18:19 UTC
Srtting up permissions questions
Does anyone know if it is possible to set up password protection based on
user or group ownership of a file in Apache?
For example we have a user who is called project1 and we want Apache to
prompt for that users username and password when accessing directories owned
by that user.
Right now we have all of our folders under the ownership of a single user
and use htaccess to limit it, but that method is getting a bit unwieldy. I
am going to be rebuilding our server soon and want to reorganize apache to
use a system where Apache runs using the username such as htpub and a group
called web.
I would then set up users for each client project so I can setup individual
ftp accounts for each user.
I would then set up the vhost for our client sites to use the user home
directories as the docroots.
I know this will all work EXCEPT for the password protection issue. I will
be setting up the new server soon, but I wanted to see if anyone has set
anything like this up.
Thanks,
Sean
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Srtting up permissions questions
Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
"Lawrence, Sean" wrote:
>
> Does anyone know if it is possible to set up password
> protection based on user or group ownership of a file
> in Apache?
>
> For example we have a user who is called project1 and
> we want Apache to prompt for that users username and
> password when accessing directories owned by that user.
On what platform?
Using the system authentication database is *not* a good idea.
However, a recent enhancement to mod_auth allows you to
only allow access if the supplied username matches the owner
of the protected file; use 'require file-owner' or 'require file-group'.
You'll still need to use htpasswd to maintain the mapping
of those usernames with Web passwords, though.
This applies all platforms except Windows, Netware, and OS/2.
--
#ken P-)}
Ken Coar, Sanagendamgagwedweinini http://Golux.Com/coar/
Author, developer, opinionist http://Apache-Server.Com/
"All right everyone! Step away from the glowing hamburger!"
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org