LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Apache default create mask (https://www.linuxquestions.org/questions/linux-general-1/apache-default-create-mask-293621/)

bbqjeanvaljean 02-22-2005 07:45 PM

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.

btmiller 02-22-2005 08:02 PM

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).


All times are GMT -5. The time now is 11:04 PM.