Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | quickstart.perms_.again_.patch | 1.44 KB | chrisschaub |
#2 | quickstart.fix_.patch | 1.44 KB | chrisschaub |
#1 | quickstart.drush_.inc_.fileperms.patch | 1.21 KB | chrisschaub |
quickstart.drush_.inc_.fileperms.patch | 1.31 KB | chrisschaub |
Comments
Comment #1
chrisschaub CreditAttribution: chrisschaub commentedSorry, that last patch was not quite right. Here's an updated version.
Comment #2
chrisschaub CreditAttribution: chrisschaub commentedMan, working too fast! Ignore those last two patches.
Comment #3
chrisschaub CreditAttribution: chrisschaub commentedSigh, found a typo. Here it is again.
Comment #4
mike stewart CreditAttribution: mike stewart commented@cschaub -- hmm, at first glance this patch doesn't do anything that these existing lines aren't trying to do...
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
Comment #5
mike stewart CreditAttribution: mike stewart commentedNote, I REALLY appreciate your effort and the patch!!!