Public bug reported: In Ubuntu 13.04 and up (including the latest version of Ubuntu 14.04 x86 and x64 versions), the /etc/apache2/envvars file has the following line at the bottom of the file:
"umask 111" This needs to be removed, or files will not be able to be uploaded into the /tmp directory on the file system with the appropriate permissions they need. I have a php update script that attempts to store the latest files in the /tmp directory, but with the umask set to 111, it fails with a generic error message that the access is denied and the file cannot be created. Once this line is removed, and apache2 is restarted, everything works properly again. I've noticed that when an update for Apache2 is released, it will "add" the umask 111 line back to the end of the file. Updates should not overwrite your settings, and this line should not even be in the envvars file to begin with. 1. Ubuntu 14.04 x64 2. Version apache2: Installed: 2.4.7-1ubuntu4.1 Candidate: 2.4.7-1ubuntu4.1 Version table: *** 2.4.7-1ubuntu4.1 0 500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages 100 /var/lib/dpkg/status 2.4.7-1ubuntu4 0 500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages 3. No umask should be specified in envvars file by default nor should a umask of 111 be readded / set to the envvars configuration when an update exists for the apache2 package. 4. I removed the umask 111 line in the configuration. When an update was installed, it was readded to the envvars configuration which messed up my files' default permissions. ** Affects: apache2 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in Ubuntu. https://bugs.launchpad.net/bugs/1354745 Title: umask 111 in envvars To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1354745/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs