Latest Releases: Plugin Uploader - Cookie Law - Karma Stars
Latest Updates: Karma Stars 1.0
Follow @mattrmybbmods on Twitter for info on releases and updates
[Feedback] Files uploaded with wrong permissions?|
31-05-2011, 12:36 AM
|
|||
|
|||
Files uploaded with wrong permissions?
I have started experiencing problems with permissions on files uploaded by by this.
It seems to set their permissions 644, and puts the owner as "nobody". This means that I cannot edit, replace etc. The onlything I can do is delete and upload a fresh file manually via FTP. Any ideas why this is happening? |
|||
|
31-05-2011, 02:04 AM
|
|||
|
|||
RE: Files uploaded with wrong permissions?
Owner as nobody... Guess I need to add code to set the owner, though it should already have an owner of apache at least, not nobody... Try this, upload a plugin that you've not uploaded before, but don't fully import it; after you've browsed for the plugin and you're on the screen that shows you the name/description/version etc, look in ./inc/plugins/temp/*folder for this plugin*/ and see what the file ownerships of the files are set to, and post that here. Then, go back to the ACP and import the plugin so it moves the files to their proper locations, and then check the ownerships of the files now they've been moved, what's it set to now??
Download My Plugins My Personal Site - Twitter - Facebook MyBB Support Team Lead. |
|||
|
02-06-2011, 07:39 AM
|
|||
|
|||
RE: Files uploaded with wrong permissions?
In temp they ownership was set to nobody, upon import completion it was set to nobody. This creates quite an issue for me, so I would need this fixing before I upload anymore.
I also need to find a way to change the ownership of the files already upload if you know how to do this? |
|||
|
02-06-2011, 08:24 AM
|
|||
|
|||
RE: Files uploaded with wrong permissions?
You should be able to change the ownership in your FTP client, or the file manager in your host control panel.
Upload a new attachment to a post and then find it in the ./uploads/ folder, what's the owner of this file set to?? The files definitely shouldn't have an owner of nobody when they're in the temp folder, and the plugin uploader doesn't even have any effect on them at that point, it's pure standard PHP that moves them there. Download My Plugins My Personal Site - Twitter - Facebook MyBB Support Team Lead. |
|||
|
05-06-2011, 08:58 AM
|
|||
|
|||
RE: Files uploaded with wrong permissions?
Hmm, how odd. All the uploads in the last few months are also down as not being owned by anyone, but before that they are fine.
Does this suggest a problem with MyBB software or host? |
|||
|
05-06-2011, 07:27 PM
(This post was last modified: 05-06-2011 09:33 PM by MattRogowski.)
|
|||
|
|||
RE: Files uploaded with wrong permissions?
The host; I don't believe MyBB sets file ownerships (as it shouldn't need to, and doesn't know what to set them to), plus we've not changed anything that would cause this; the ownership of new files should be being set by the server. If you upload files via FTP the owner should be the name of the FTP user, and attachment uploads etc should probably be owned by apache, i.e. the web server, as it was uploaded via PHP. If the owner was being set properly and now isn't, something must have changed on the server. Unfortunately I'm no expert in server management so I'm not too sure what the cause would be, but I'll try and help you find out what it may be.
Download My Plugins My Personal Site - Twitter - Facebook MyBB Support Team Lead. |
|||
|
06-06-2011, 12:07 AM
|
|||
|
|||
RE: Files uploaded with wrong permissions?
Ah, well luckily my VPS is managed, so I will go to my host and ask them to look into it. I'll let you know what they come back with.
|
|||
|
12-06-2011, 09:30 PM
|
|||
|
|||
RE: Files uploaded with wrong permissions?
It was the hosts fault - they had my settings incorrect which have now been fixed, so this is no longer an issue.
I should note however, the plugin uploader did not detect it was not overwriting the files. It still showed as uploading and overwriting correctly when it could not due to the owner settings. Might be something you want to check on, as because I was thinking it was overwriting when it wasn't, I was looking elsewhere for the problem. |
|||
|
12-06-2011, 10:31 PM
|
|||
|
|||
RE: Files uploaded with wrong permissions?
Ah, that's good news.
I'm not sure there's much I can do about that, if the PHP function used to copy the files returns true, that's all I have to go on, there's no other way of checking. I guess I could check if the owner of the file is nobody before trying to copy it, but it might not be able to check that on all servers. Download My Plugins My Personal Site - Twitter - Facebook MyBB Support Team Lead. |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)


