tec...@protonmail.com writes:

> Hi there,
>
> I have been using httpd for quite a while now, but after a new
> project/website having to have read/write/execute permissions (unsafe,
> I do realise..) I decided to:
>
> 1. add root to the www group,
> 2. chown -R www:www /var/www/htdocs
> 3. chmod -R 775 /var/www/htdocs
>
> Everything was running smoothly, until I was testing out the
> functionality and realised I couldn't use php to write new directories
> or files, so I checked the permissions and for some reason they have
> all switched back to: root:daemon with permissions of 755.
>
> Now, I'm guessing this is a security feature in some way, but for my
> purposes and he type of service I'm creating it is breaking
> everything. Can someone tell me what to man page to look up for this
> or something? Time is of the essence because I need this website
> runing properly by tomorrow at latest.
>
> Many many thanks!!
The issue maybe caused by syspatch which you ran. It runs mtree
and sets file permissions according to /etc/mtree/4.4BSD.dist
so you have to set the permissions you want in that file.

I ran into that too with a differrent service.

Alf

Reply via email to