Closed (fixed)
Project:
Mail Archive
Component:
Filesystem access
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2005 at 23:26 UTC
Updated:
5 Mar 2005 at 11:15 UTC
The module-created directories (mail_archive and its children) have permissions 740 (and a different owner?) in a managed web-hosting environment. That means that 1) the mails cannot be saved to them (no execute permission) and I cannot change the permissions as I didn't create the folders.
Comments
Comment #1
javanaut commentedThe folder was probably created by the webserver user.
This won't fix the bug, but you can upload code invoking the chmod function as the webserver user on the directory in question as a workaround.
Comment #2
jeremy commentedLooking over all files created by Drupal, they seem to have the same ownership and privilege information. ie, this is not unique to the mail_archive module. Perhaps this "bug" should be against Drupal core?
Comment #3
robertdouglass commentedYes, you are right. The solution would be to enforce use of the file.inc API which already provides this functionality. Where are the examples you found?
From file.inc::file_check_directory
Comment #4
robertdouglass commentedI tracked the mail_archive code and it is already using the file.inc correctly, so my issue is misplaced. It is very bizarre, though. File inc creates and chmods dirs using 0760 but the result on my server is 0744.
Comment #5
jeremy commentedI'm closing this issue, as it's not related to the mail archive. I suggest opening an issue in the proper place (or move this one and reopen it).
Comment #6
(not verified) commented