alessandro123
Verified User
- Joined
- Sep 11, 2008
- Messages
- 46
Some of our customers are using webbased CMS that will create files from php.
When a file is created in php, it will be owned by apache user (we are not using suphp for some security questione like unlockable php.ini and basedir).
How can we set a default umask for a directory or for apache?
actually I've done this script:
that will add apache user to every customers group.
The script is run from crontab every 5 minutes.
Next, I've added "umask 002" in /etc/init.d/httpd
Are there any cleaner way to set up umask?
Are quota calcolated for the whole directory or only for files owned directly by a user?
When a file is created in php, it will be owned by apache user (we are not using suphp for some security questione like unlockable php.ini and basedir).
How can we set a default umask for a directory or for apache?
actually I've done this script:
Code:
#!/bin/sh
/bin/sed -i -r '/^web[0-9]{8}\:x\:[0-9]+\:$/s|$|apache|' /etc/group
that will add apache user to every customers group.
The script is run from crontab every 5 minutes.
Next, I've added "umask 002" in /etc/init.d/httpd
Are there any cleaner way to set up umask?
Are quota calcolated for the whole directory or only for files owned directly by a user?