UMASK

The FTP.DATA configuration statement used to define the default permissions for newly created zFS files is UMASK. The value specified on the UMASK statement represents which permission bits are not set on when a file is created. This value is entered as a 3 digit octal mask.

When FTP creates a file it assumes the permission bits are 666 (-rw-rw-rw-), which correspond to:

The server then uses the UMASK value to turn off the permissions bits indicated by the UMASK value.

Example:

If the UMASK value is 027

110110110 - bits from the default 666 value FTP uses
000010111 - bits from the 027 UMASK setting
_________
110100000 - the resulting value is 640

After turning off all bits from the 027 UMASK setting, the resulting default permission bits for newly created files are 640 (-rw-r-----), which correspond to:

Syntax rules:

When this panel is initially displayed, the UMASK value is set to match the permission bits setting configured on the File Permissions panel. After leaving this panel by clicking "OK", you will return to the File Permissions panel where the permission bits settings on the File Permissions panel will reflect the new UMASK value.

Push buttons
Click OK to complete the specification.
Click Cancel to negate any entries you have made on this page.
Click Help to understand more about this panel.