LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Uploaded files via web interface get a 600 permissions - how can I change this? (https://www.linuxquestions.org/questions/linux-newbie-8/uploaded-files-via-web-interface-get-a-600-permissions-how-can-i-change-this-466236/)

muskiediver 07-21-2006 09:11 AM

Uploaded files via web interface get a 600 permissions - how can I change this?
 
This may be a permissions issue or setting up accounts for use with content management systems. I was wondering if any of you can help.

I am speaking about the files in this folder:
var/…/…/…/httpdocs/dmdocuments
I have a red hat Linux build

I just moved mambo 4.51a (www.mamboserver.com) over to my new dedicated server. I uninstalled RC1 and reinstalled RC2 of docman (http://www.mambodocman.com/), and then I rebuilt my database. Everything seems to work, but when I download a document via the docman front end and it says the file is bad:
“Acrobat could not open 'nam_of_some_file.pdf" because it is either not a supported file type or because the file has been damaged.......”

So I checked the permissions and sure enough that is the cause. They were set at 600, so I changed all to 644 via my ftp client. However, certain files could not be changed. My user name on my server is nwright, but it appears when I upload a document via mambo's docman, the permissions of the document are named "apache" and it writes the file with 600 permissions which gives the above error on the front end when you try to download a file. The permission that works is 644.

My system is using plesk, so I don’t know if that has anything to do with it. Did I miss something in the admin configuration on docman or mambo? This appears more like a Linux problem to me. Do I need to set up a special user and group for mambo on my Linux?

The current group for muskiediver is some group
The current group for apache is apache

When I try to change permissions to an apache owned file via plesk, I get this error:
Unable to change permissions for file /httpdocs/dmdocuments/20060606cert_resolutions.pdf: filemng failed: chmod: changing permissions of `/var/…/…/…/httpdocs/dmdocuments/20060606cert_resolutions.pdf': Operation not permitted filemng: Error occured during /bin/chmod command.

I can change my own files via plesk with no problem. The permission on the var/…/…/…/httpdocs/dmdocuments folder is 777

Any ideas?

I may be experiencing a problem similar to this (minus the suPHP environment problem):
http://www.mambodocman.com/index.php...d=9903&catid=2


All times are GMT -5. The time now is 12:16 AM.