UMask

Learn how to use the UMask config.txt directive to mutually control who is able to access EZproxy files.

If you are running a Linux version of EZproxy, UMask allows you to manually control who is able to access EZproxy files. 

UMask is a position-independent directive that provides a numeric value that controls the permissions on fields created by the Linux versions of EZproxy. This directive serves no meaningful purpose on Windows.

The syntax of this directive is the same as the Linux command umask. When UMask is not specified, its default value is 0077, which limits access on files to the account that is used to run EZproxy. Refer to the table below for information on computing the values for use with UMask.

Qualifiers 

Qualifier Description
mode A four-digit number that must start with 0 and is followed by three other digits. The digits are calculated by adding together the permissions that should not be granted, using 4 for read, 2 for write, and 1 for execute. The second digit controls user access, the third digit controls group access, and the fourth digit controls access for all others. The default value is 0077, where the first 0 is the required value, the second 0 indicates that user access should not be restricted, the third 7 indicates that all group access should be denied, and the fourth 7 indicates that access for all others should be denied.

Syntax

UMask ####

Example

If you want to provide read only access on your Linux server, you could enter the following statements in your config.txt.

UMask 0037

This would allow users to read, write, and execute; groups to read, but not write or execute; and all others no permissions.

Related directives 

RunAs