UMASK - UDM Manager configuration option

Description

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

UMASK applies only to the HFS file system.

The permission mode of newly created files on HFS file systems is determined by either the source file permission mode (when the source file is from an HFS file system and source UDM component version is 3.2 or greater) or the UMASK option. The permission mode of newly created directories is always based upon the UMASK option.

When the file permission mode is not obtained from the source file, newly created files are created with a permission mode of 666, which is read-write permission for the owner, group, and other categories. All directories are created with a permission mode of 777, which is read-write-execute permission for owner, group, and other categories. UDM uses UMASK to turn off selected permission bits by subtracting the value of UMASK from the file mode 666 or directory mode 777.
 

Note

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

Usage

Method

Syntax

IBM i

UNIX

Windows

z/OS

Command Line, Short Form

n/a





Command Line, Long Form

-umask number


(tick)

(tick)

(tick)

Environment Variable

UDMUMASK=number

(tick)

(tick)

(tick)

(tick)

Configuration File Keyword

umask number

(tick)

(tick)

(tick)

(tick)

STRUDM Parameter

n/a





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

The default value, 026, results in directory permission 751 (777 - 026 = 751), which is:

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

References

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