On Saturday 14 February 2004 5:06 am, Anders Johansson wrote:
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?
That was it. It'm using vsftpd. There was an option in the conf file that I must have missed the frist 5 times I looked it over yesterday. it's working great now thank you. -- Allen Seelye alleninmt@yahoo.com Linux user since 1999 WWJWD What Would John Wayne Do?