On Tue, Feb 23, 2010 at 5:55 PM, nair on fire <[email protected]> wrote:
> I want that files uploaded by Apache/php have permission matching umask 002 > i.e. rw-rw---- > > how can I achieve this ? > > I tried the following: > > umask 002 (and/or umask 0022) in files: > /etc/sysconfing/httpd > /etc/init.d/httpd > restart httpd > > but didnt work. Not surprised it didn't work. What user owns the files uploaded by apache? You need to set the umask in this user's .profile. Regards, NMK.
