UMASK (FTP client and server) statement
Use the UMASK statement to define the file mode creation mask.
The file mode creation mask defines which permission bits are NOT to be set on when a file is created. When a file is created, the permission bits requested by the file creation are compared to the file mode creation mask, and any bits requested by the file creation that are not allowed by the file mode creation mask are turned off.
- Server
- This setting applies when creating z/OS® UNIX files on the server's system.
- Client
- This setting applies when creating z/OS UNIX files sets on the client's system.
Syntax
Parameters
- octal_umask
- The octal umask.
Examples
When a file is created, the permission
bits for file creation are 666 (-rw-rw-rw-). If the file mode creation
mask is 027, the requested permissions and the file mode creation
mask are compared:
110110110 - 666
000010111 - 027
---------
110100000 - 640
When the UMASK is set to 027, the
actual permission bits set for a file when it is created is 640 (-rw-r-----).Usage notes
You cannot use FTP to create z/OS UNIX files that have execute permissions. If you require execute permissions, use the site and chmod commands or locsite chmod subcommand after the file is created. For more information about site and locsite, see z/OS Communications Server: IP User's Guide and Commands.