[kforge-dev] PATCH: improve umask handling

Martin Fuzzey mfuzzey at gmail.com
Sat Mar 1 11:46:19 UTC 2008

although the INSTALL file describes two ways of handling the file
permissions (make everything owned by the webserver user or change the
webserver scripts to set the umask) they both have problems:
The first solution may cause incorrect permissions when running admin
commands from the command line
The second solution involves system level changes affecting all web
applications run by apache (I've asked about this on the Debian lists
and doing this is not allowed policy wise...)

The attached patch implements a IMHO better solution involving :
changing the umask for the kforge-admin command
changing the umask for the duration of each web request

This enables both command line and web access with no system umask
changes providing the directory permissions are correctly set.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 04_umask.dpatch
Type: application/octet-stream
Size: 1456 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/kforge-dev/attachments/20080301/aef65626/attachment-0002.obj>

More information about the kforge-dev mailing list