Having a fairly large problem and need some troubleshooting help. Whenever someone uploads a file to their blog (browser or flash uploader, doesn’t matter), I’m finding that the permissions of the folder it gets uploaded to are wrong.
I have set my blogs.dir folder and below to be owned by nobody and granted permissions of 777. But when a file is uploaded, the parent directory of the file gets set to drw-r—– 2 wwwrun www
As an example:
I upload a file right now to one of the blogs we have set up. Prior to uploading, the folder for 2009/11 looks like this:
drwxrwxrwx 2 nobody www 2009-10-20 14:57 11
but after the upload, it reads:
drw-r—– 2 wwwrun www 2009-11-18 13:40 11
Before upgrading to 2.8, this never occurred. I have been dealing with this by having line in my cron to reset the permissions every minute, but there has to be a better way of fixing this, as some of our staff can’t bear to wait that one long minute to work on their posts.
Anyone have any ideas how I can go about fixing this? I looked through the upload code and found one spot where I could set the permissions of the file, and have changed that to 777, but I couldn’t find where it was resetting the parent folder, and the umask for my website is set to 764, so I don’t know where it’s getting these arbitrary values from.
- The topic ‘Permission problem after file is uploaded’ is closed to new replies.