If the user wwwrun has read-rights on this folder, then the
apache2-webserver serves this pages correctly outside. If you need to
provide CGI-scripts, then you must add the executable-right to the
wwwrun-user (or group www).
One way is
Code:
chown -R wwwrun:www /srv/www/htdocs/*
to set the correct ownership and
Code:
chmod -R 750 /srv/www/htdocs/*
to set the proper rights.
3) It depends, with which user these files are being created. One way
could be to set the umask-flag for this user or the setgid-right on the
directory.
The “h”-switch changes only the the owner of the symlink itself (it
touches not the ownership of the target-file).
For the setgid-attribut, you need first to change the correct group.
For instance: >[/color]
Code:
--------------------[color=blue][color=green]
chgrp www /srv/www/htdocs/[/color][/color]
--------------------[color=blue][color=green]
.[/color]
Then you need to modify the rights like this:[color=green]
[/color][/color]
Code:
--------------------[color=blue][color=green]
chmod 2770 /srv/www/htdocs/[/color][/color]
--------------------[color=blue][color=green]
[/color]
/QUOTE]