Hosted by:
SourceForge

wrapper.umask Property
wrapper.umask Property
Configuration Property Overview
wrapper.umask

Sets the umask used when creating files. The umask is used to disable certain permission bits for files. Values can be entered in decimal or hexadecimal or octal formats. Defaults to 0022 which is an octal number.

Values beginning with '0x' will be treated as hexadecimal (base 16). The leading '0' causes the number to be parsed as octal (base 8) otherwise it is treated as a decimal (base 10) number,

In octal format the umask is defined as a 3 digit number starting with a 0. The first, left-most, digit specifies the blocked permissions for the user creating the file. The second digit specifies the blocked permissions for other users who are members of the file's group. The third, right-most, digit specifies the blocked permissions for any other user.

Each digit is specified by adding up the following values: 4 to restrict read access, 2 to restrict write access, 1 to restrict executable access. A value of 7 thus restricts read, write and execute access.

The default umask of 0022 will thus restrict all users except the creator from writing or modifying files. To prevent other users from being able to execute or even see the files a value of 0077 should be used.

Example:
wrapper.umask=0022
wrapper.*.umask

The Wrapper also makes it possible to specify the umask for particular files created by the Wrapper by using the following properties. Each defaults to the value of the wrapper.umask property.

  • wrapper.umask Specifies the default umask and umask of the Wrapper process.
  • wrapper.java.umask Specifies the default umask of the Java process and thus of any files created by the Java application.
  • wrapper.pidfile.umask Specifies the umask to use when creating the pid file. See the wrapper.pidfile property.
  • wrapper.lockfile.umask Specifies the umask to use when creating the lock file. See the wrapper.lockfile property.
  • wrapper.java.pidfile.umask Specifies the umask to use when creating the Java pid file. See the wrapper.java.pidfile property.
  • wrapper.java.idfile.umask Specifies the umask to use when creating the Java id file. See the wrapper.java.idfile property.
  • wrapper.statusfile.umask Specifies the umask to use when creating the status file. See the wrapper.statusfile property.
  • wrapper.java.statusfile.umask Specifies the umask to use when creating the Java status file. See the wrapper.java.statusfile property.
  • wrapper.anchorfile.umask Specifies the umask to use when creating the anchor file. See the wrapper.anchorfile property.
  • wrapper.logfile.umask Specifies the umask to use when creating the log file. See the wrapper.logfile property.

by Leif Mortenson

last modified: