Sat, Oct 29, 2005 ve 11:21:54PM +0100, Andrew Alderwick napsal:
> I don't quite understand this one, because I'm assuming that if the
> apache user has insufficient privileges to make the directory, setting
> the umask then won't help. Am I missing something?

Yeah :) Apache user has sufficient privileges, but...

Model example:

dir is /data and apache user has privileges to write to it
apache user umask is i.e. 0177 so new files are created with 0600
privileges.

apache user try to make dir with mkdir('somedir',0777) and everybody
expect, that this dir will have 0777 rights but no. It will have
these from umask, so 0600.

This problem is decribed i.e. here:
http://mirrors.inway.cz/manual/cs/function.mkdir.php in bottom of
page at user comments

So apache user is owner but in this case there is no execution
rights on dir, so he cannot enter here or put some files...
 
> I was very impressed with the plethora of patches that welcome me
> tonight. Keep it up! :-)
> 
> Cheers
> Andy
> 
> On 29/10/2005, "Ondra Kudlik" <[EMAIL PROTECTED]> wrote:
> >In some environments Iloha cant make dirs and files in data
> >directory also if it data dir have good permisions and ownered by
> >apache user. This is because umask setting override mkdir mode.
> >
> >Attached patch correct this bug.

-- 
 .''`. Ondra 'Kepi' Kudlik
: :' : Debian GNU/Linux User
`. `'
  `-   http://www.nosoftwarepatents.com/cz/m/intro/index.html 

Attachment: signature.asc
Description: Digital signature

Reply via email to