umask is being ignored on Gentoo while creating new files

Posted by drcelus on Server Fault See other posts from Server Fault or by drcelus
Published on 2012-05-22T15:04:21Z Indexed on 2012/06/29 15:17 UTC
Read the original article Hit count: 213

Filed under:
|
|
|

I have a server running Gentoo and hosting a drupal installation. Whenever a Drupal update is executed, the directory permissions of the updated module turn from 755 to 744 preventing the application from accessing the files. The umask is defined as 022 under /etc/profile and the Apache server is running under user and group nobody.

I believe this has nothing to do with the drupal installation since if I create a directory as root, the same happens, it is created with 744 permissions, since the umask is 022 shouldn't it be created as 755 ?

Why is the umask being ignored and how do I tell the server to create the directories with permission 755 ?

© Server Fault or respective owner

Related posts about linux

Related posts about file-permissions