The quickstart fix permissions command

drush qf

doesn't switch the group bit to writeable on files (does for dirs), but it has to be since the web server running as group www-data won't be able to delete or overwrite existing files without it. I've attached a simple patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chrisschaub’s picture

Sorry, that last patch was not quite right. Here's an updated version.

chrisschaub’s picture

FileSize
1.44 KB

Man, working too fast! Ignore those last two patches.

chrisschaub’s picture

Sigh, found a typo. Here it is again.

mike stewart’s picture

Status: Needs review » Closed (works as designed)

@cschaub -- hmm, at first glance this patch doesn't do anything that these existing lines aren't trying to do...

sudo find $codepath/sites -type d -name files -exec chmod -R a=,ug=rwX '{}' \;
sudo find $codepath/sites -type d -name files_private -exec chmod -R a=,ug=rwX '{}' \;

In the first line, the statement searches for any child folder under sites named files (in the scond it searches for files_private). For each instance, it executes a chmod recursively on all files and folders setting user & group permissions to RW (and folders get X -- which allows listing of files).

Maybe you can provide more details and I can help debug whats going on? Please feel free to hit me up in IRC #drupalpro

mike stewart’s picture

Note, I REALLY appreciate your effort and the patch!!!