LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 07-21-2006, 10:11 AM   #1
muskiediver
LQ Newbie
 
Registered: Mar 2006
Posts: 24

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Vsftpd uploaded files Permissions silver05 Linux - Software 2 09-30-2005 09:22 AM
wsftpd and uploaded file permissions Crashputer Linux - Software 1 08-01-2005 06:10 AM
change uploaded files from filename.avi to filename.avi.html like www.rapidshare.de latheesan Linux - Newbie 3 06-16-2005 05:33 AM
Uploaded Files permissions (proftpd) Wynand1 Linux - Security 1 01-28-2005 04:32 AM
File uploaded via FTP have bad permissions breakerfall Linux - Networking 7 12-28-2003 05:29 PM


All times are GMT -5. The time now is 05:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration