Forum Moderators: phranque
I am developing a website that allows users to upload files and then view them, however all the newly created files that have been uploaded have default permissions of -rw-------, when I would like them to have -rw-rw-rw-. I do not see where I can change the (umask?) setting on my Apache/Ubuntu setup. Any help?
Thanks from a Linux newbie.
If it is via 'standard' FTP, then you can assign a default umask in the FTP server config, most likely.
If it is via a script (like PHP), then you can perform the appropriate chmod command once the file has been moved from its temporary space to its 'real' space.