14 Feb
2004
14 Feb
'04
13:06
On Fri, 2004-02-13 at 20:58 -0800, Allen Seelye wrote:
I have an ftp directory in which I want every file uploaded to be readable by group and others. I believe the command is umask 644. This should make everything created in that directory have -rw-r--r-- permissions right?
Wrong, you have umask backwards. umask should be the bits you want to mask out. For permissions 644, the umask should be 133
I've done this and a umask from that directory brings back a 0644, but everything I upload to that directory is only read/writable by the user that uploaded the file. I have to be doing this wrong.
Most ftp servers set the permissions on uploaded files in the configuration. Which server are you using?