UMASK - UDM Server configuration option

Description

The UMASK option specifies the file mode creation mask. It affects the file permission bits of newly created files.

UMASK is supported only for the Hierarchical File System (HFS).

All files are created with a permission mode of 666, which is read-write permission for the owner, group, and other permission categories. UDM uses UMASK to turn off selected permission bits by subtracting the value of UMASK from mode 666.

Note

To set file permissions, the File Permission (mode) attribute is the recommended method.

Usage

Method

Syntax

IBM i

UNIX

Windows

z/OS

Configuration File Keyword

umask number

(tick)

(tick)


(tick)

Values

number can be any number, 001 to 666.

Default is 026.

The default value (026) results in file permission 640 (666 - 026 = 640), which is:

  • read-write for the owner
  • read for the group
  • none for others

References

Refer to the UNIX man page umask(1) for complete details.