LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-11-2002, 11:05 AM   #1
ifm
Member
 
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124

Rep: Reputation: 15
Unhappy Directory permissions acting funny...


When I have a directory set to apache group full read/write/execute... any user in apache group should be able to do anything to any file in the directory, right?

There is some setting for the directory mod that allows this... but obviously any directories I make don't get set with this. What is that chmod I need to do to the directory to allow any permission on any file within the directory based on the directories permission settings?

chmod 1 /dir/name ?

Reason is apache needs to controll files in a particular directory with PHP, and if the permissions are screwed due to something else (like imagemagick running, or another process), apache and php gets all pissy about not being able to do what it should.

Last edited by ifm; 06-11-2002 at 11:14 AM.
 
Old 06-11-2002, 03:18 PM   #2
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Re: Directory permissions acting funny...

Quote:
Originally posted by ifm
When I have a directory set to apache group full read/write/execute... any user in apache group should be able to do anything to any file in the directory, right?
Well, not exactly. If the directory has the appropriatre permissions (say, 775, or rwxrwxr-x owned by user apache and group apache), but the target file doesn't have these permissions... then you can't modify that particular file, even though it's inside the directory with the correct permissions.
Quote:
Originally posted by ifm

There is some setting for the directory mod that allows this... but obviously any directories I make don't get set with this. What is that chmod I need to do to the directory to allow any permission on any file within the directory based on the directories permission settings?

chmod 1 /dir/name ?

Reason is apache needs to controll files in a particular directory with PHP, and if the permissions are screwed due to something else (like imagemagick running, or another process), apache and php gets all pissy about not being able to do what it should.
If I were you, I'd read the man page for umask, and make sure that ImageMagick and your PHP scripts have the appropriate umask, so that when they work with the file in question, they give it the necessary permissions, so that both of them can modify that file in the future.
 
  


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
Yast acting funny DFA SUSE / openSUSE 2 05-23-2005 04:33 PM
Virtual Host acting funny eckertc1 Linux - Newbie 4 03-06-2005 06:41 PM
sound acting funny madmax04 Fedora 6 10-19-2004 10:20 PM
Gnome acting very funny Stan the caddy Linux - Software 6 09-18-2004 02:57 PM
Mouse acting funny after upgrade to 2.6.8.1 Cosmos95 Slackware 8 08-28-2004 08:36 AM


All times are GMT -5. The time now is 11:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration