Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

Default permissions for new file

hopefully easy an question

9:24 pm on Jan 10, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 28, 2003
votes: 1

When I upload a file using FTP, the permissions are rw-r-r.

I want them to be rw-rw-rw.

I don't seem to have chmod ability in the FTP client (it's a windows dll I use in a custom app). Is there a way to tell the UNIX file system to set default permissions for new files as rw-rw-rw?

5:22 am on Jan 11, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 31, 2003
votes: 0

The permissions should be governed by the 'umask' setting in the FTP server configuration. The usual setting of umask 022 yields rw-r--r--, and a umask 0 would yield rw-rw-rw-.