Opened 16 years ago
Closed 16 years ago
#10603 closed defect (bug) (wontfix)
All folders created through wordpress media uploader are owned by the apache user, thus denying all access regardless of permissions
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | major | Version: | |
Component: | Media | Keywords: | apache, user, upload, media, permissions, ownership |
Focuses: | Cc: |
Description
Experienced the same issue documented here: http://wordpress.org/support/topic/253778?replies=15.
Apache user takes ownership and denies write access regardless of 0755 or 0777 permissions.
I had to turn off file archiving by year/month to avoid creation of folders from wordpress because anything generated from wordpress is owned by the apache user.
I've not seen this bug anywhere but on the mediatemple (dv) server that I'm working with. Possibly server configuration error?
Change History (1)
Note: See
TracTickets for help on using
tickets.
This is the expected behaviour.
This is also why the Plugin/Theme/Core upgrader/installers require FTP credentials in most situations, To prevent issues like this cropping up.
0777 permissions *should* allow the user to read/write/modify the files within, but its not always the case, and they're still owned by the user that creates them (In this case, the Web server, 'apache').
The only other option is for WordPress to ask for FTP details for every upload, or for the server to be run as root (Which no one would in their right mind do) to allow Apache to save the files and appear as its owned by someone.
Every PHP program which accepts file uploads suffers the same problem, Unless you're running under SuExec or SuPHP, where PHP is run as the user that owns it, thus the files it creates are owned by the original user..
I'm closing as wontfix, due to the nature of the problem, and that its not something that can really be "fixed" and remaining to run as users expect