How to set default permissions of an uploaded file

For issues regarding settings and usage of FTP and WebDAV service, post it here!
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form: ... p?lang=enu

2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
Posts: 187
Joined: Tue Jul 17, 2007 12:22 pm

How to set default permissions of an uploaded file

Unread post by thunderbird » Mon Jan 30, 2012 2:18 pm

How is it possible to set the default permission of a file uploaded via WebDAV? If I upload a file, the permission is always set to -rw-rw-rw while I would rather like someting like -rw--r--r
For samba there's a settin called "create mask", is there something similar for WebDAV? I did a little bit of investigation and found the suggestion of setting the umask, which i tried by editing the (adding umask 022 at the beginning of the script), but with no success... Any ideas?

Post Reply

Return to “FTP & WebDAV Server”