On 05/29/17 01:57, tec...@protonmail.com wrote: > 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!! >
My suggestion would be to look into mtree(8) and security(8)