Link to home
Start Free TrialLog in
Avatar of erzoolander
erzoolander

asked on

Linux/Apache File Ownership/Permissions

I'm setting up an Ubuntu server - and have everything working well.  I want to ensure, however, that I have the file ownership and permissions set properly.

The site is a Drupal 8 site, so the only files that need to be writeable by the web-user are located in /sites/default/files

Currently - everything in the site has the ownership of root.  Should ownership of everything in the public_html folder be changed to the apache username of www-data from root?

Then - for the files/directories that need to be writeable to by the CMS - should those then be set to something like 644 - with the directories being 755?

I'm a little new with the sysadmin stuff.  Any help would be appreciated!
ASKER CERTIFIED SOLUTION
Avatar of Rick Hobbs
Rick Hobbs
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial