[NTLUG:Discuss] uploading to apache server
Paul Ingendorf
pauldy at wantek.net
Sun Oct 21 22:54:57 CDT 2001
Add the users you wish to have access to the group who owns the dir. If this is
root you might wish to change the user apache is running as. This will
introduce minor security issues which you should be aware of. Like if the users
account is compromised so will the security of your web content.
You could also script this so you have a tiered approach you first create a dir
for the user to upload the content into. Then a script with the sticky bit set
which updates the content from the users dir into /home/httpd/html or
/var/www/html which I think is the default dir for mandrake if you update
apache.
Another solution would be to simply set the documentroot for apache to a dir in
the users home directory. Just make sure the user apache runs as has read
access to the users dir or you get an access denied. This solutions caviate is
without knowing permissions in unix you could break any scripts which write to
files in the documentroot path.
If the user is on the same subnet as the machine you want him to update files on
there is another solution I would recomend that I use for a lot of clients. It
involves running samba on the webserver authenticating the user via a PDC then
forcing the user and group when reading or writting files in the webroot to the
user that apache runs as. Then you wall off the samba ports to the outside
world.
Questions about the specifics of any of these solutions let me know.
Quoting Bobby Wrenn <bobby at wrennest.com>:
> How do I give an external user access to upload new pages to the
> default
> apache server (/home/httpd/html). Distro is Mandrake 7.0.
>
> TIA
> Bobby
> --
> This tagline is identical to the one you are reading.
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
--
-->> mailto:pauldy at wantek.net
-->> http://www.wantek.net/
Running ....... Cos anything else would be a waste...
`:::\' ....... ......
::: * `::. ::\'
::: .:: .:.::. .:: .:: `::. :\'
::: :: :: :: :: :: :::.
::: .::. .:: ::. `::::. .:\' ::.
.:::.....................::\' .::::..
More information about the Discuss
mailing list