Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jan 18, 2008 10:34 am 
Offline
Junior Member

Joined: Mon Oct 29, 2007 10:12 am
Posts: 33
I seem to be having problems with file permissions. Apache runs as 'apache', and its htdocs dir is /home/<my_username>/www/htdocs. All works fine, except an upload script which allows users to upload files via a web-form to a sub-directory of the htdocs dir.

The file-uploads dir is set to 775, and apache is a member of my_username group. But I'm getting 'Couldn't open temp file for writing: Permission denied' errors on file upload unless I set the uploads dir to 777. Security is not really an issue as we're on a LAN with password access (for a small number of trusted users) to the application that does the file uploads.

As far as I know, 775 means user & group have read/write/execute permissions on the directory, and apache is a member of the group, so what is causing the problem?


Top
   
 Post subject:
PostPosted: Fri Jan 18, 2008 3:26 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
Have you restarted apache since you added it to your group?

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
 Post subject:
PostPosted: Fri Jan 18, 2008 4:04 pm 
Offline
Junior Member

Joined: Mon Oct 29, 2007 10:12 am
Posts: 33
Quote:
Have you restarted apache since you added it to your group?

Err, no :( I'll do so next chance I get and report back.


Top
   
 Post subject:
PostPosted: Fri Jan 18, 2008 6:41 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
That will (well, should) fix it. Changes to group membership don't affect existing processes.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.

-- seen on the net


Top
   
 Post subject:
PostPosted: Mon Jan 21, 2008 9:38 am 
Offline
Junior Member

Joined: Mon Oct 29, 2007 10:12 am
Posts: 33
Quote:
That will (well, should) fix it


It did! Many thanks.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group