The chmod.module is for changing file permissions. Currently there is only a possibility to add write permissions on files where the webserver has the ownership. Open an issue if you need other chmod possibilities.
This is primary for fixing a problem on recommended server configurations where the webserver is running with a another system user than the system user for ftp or ssh/drush. On this systems there are sometimes files which cannot be changed or deleted via drush or ftp command because of missing write permissions for the file group. In most cases there are some kind of cache files. If the drupal administrator has no access to the root user maybe on a shared server (s)he can sometime use special command on the user-interface of the hosting provider or need to open an issue there.
This module helps to solve this situation directly with the webserver via browser or curl. By design this can not be directly repaired via drush. This module provides a drush command "chmod-curl" to open a special url ("/chmod/exec/%") provided by this module to trigger the chmod command through the webserver as described above.
The current code is simply using find and chmod-command through "exec". This very fast because we are using the power of the operating system. Maybe this is not working on every PHP setup. But patches are welcome if somebody wants to make this module more compatible with php file operations.
The drush command "chmod-curl" requires php-curl. With the curl strategy the drush command works with ssl protected and webaccess password protected websites to access special url.
Project information
- Project categories: Administration tools
2 sites report using this module
- Created by c-logemann on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
