LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-22-2005, 07:45 PM   #1
bbqjeanvaljean
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
Apache default create mask


I have a simple PHP program that cretaes some directories and puts some images in them. I need to be able to allow users via FTP to still have the permission to delete these files/directories, but as it currently stands, apache creates directories with 755 permissions. I need to have these directories as 775 in order to allow users in teh apache group to still delete them. How do I change the default directory create mask for apache?

I am running Apache 2 on Fedora.

Last edited by bbqjeanvaljean; 02-22-2005 at 07:46 PM.
 
Old 02-22-2005, 08:02 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Probably easier to do it with PHP. As the documentation clearly states, the mkdir function in PHP takes an argument (mode) to specify the permissions on new directories you create. If you want to change perms ex post facto, you can use the chmod function (just like the *nix command).
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba create mask msound Linux - Networking 1 03-23-2005 08:20 PM
Get the default gateway / net mask idit Linux - Networking 1 11-21-2004 08:39 AM
create mask = 0765 br_sriram Linux - Networking 2 11-02-2004 12:22 PM
Samba - Create Mask/Mode anilnatha Linux - Software 8 07-26-2004 06:27 PM
create default gateway on boot dave bean Linux - Networking 2 02-29-2004 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:18 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
Open Source Consulting | Domain Registration