1

www-data default permissions on files/directories

view story
linux-howto

http://serverfault.com – I have a very interesting situation. I have a Debian Lenny server running Apache/2.2.9 and PHP 5.2.6-1+lenny10. When Apache creates a new file (simple php upload script or http svn checkin) the permissions and ownership on the file is: www-data test -rwxr-xr-x When a new directory is created the permissions and ownership are: www-data test drwxr-sr-x I have made changes on the server to /etc/profile with "umask 0002". This setting is supposed to make newly created files to 664 and newly created directories to 775. It ONLY does this when I actually log in as the 'www-data' user and m (HowTos)