Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal Folder and File Permissions

I'm having a craptastic time trying to figure out how I should configure my Drupal folders and files. I've search all over drupal.org but keep coming up with dribble about the www-data needing access to the "sites" and the "files" folder and how "settings.php" needs some awesome permissions.

But what I need is a list like this:

/ = 744 or drwxr-r--
/includes/ = ...
/misc/ = ...
/modules/ = ...
/profiles/ = ...
/scripts/ = ...
/sites/ = ...
/sites/all/ = ...
/sites/default/ = ...
/sites/default/settings.php = 444?
/sites/default/files/ = ...

I don't think I need someone to catalog every single file, folder, and permission settings for me. I'm guessing that I can just set the root folder permissions to "apply to enclosed items" and then fix the few folders and files that need special settings.

I would really appreciate any contributions that can lead me back to sanity! :)

Scott

like image 429
skhot Avatar asked Jan 22 '11 03:01

skhot


People also ask

What should directory permissions be?

the /home directory should be 755 IMO.

How do I change permissions in Drupal?

And for the administrators group give complete access. Go to the Drupal root directory, right click on it, go to properties and then security. Make use of permission inheritance to make things easier for yourself. And remember that any newly installed module/theme or add on must have its permissions changed too.

How do I add permissions in Drupal?

Managing roles in Drupal 5. To specify the permissions for a role, click Administration > User management > Permissions. To add editors to your site, you will first need to create an editor role. Click Administration > User management > Roles. Type in the name of your new role (e.g. 'editor') and click 'Add role'.


1 Answers

default install on my local machine has

-rw-r--r-- all php files

drwxr-xr-x directories

drwxrwxr-x files folder

-r--r--r-- settings.php file

like image 93
mirzu Avatar answered Oct 10 '22 09:10

mirzu