1PAM_UMASK(8)                   Linux-PAM Manual                   PAM_UMASK(8)
2
3
4

NAME

6       pam_umask - PAM module to set the file mode creation mask
7

SYNOPSIS

9       pam_umask.so [debug] [silent] [usergroups] [umask=mask]
10

DESCRIPTION

12       pam_umask is a PAM module to set the file mode creation mask of the
13       current environment. The umask affects the default permissions assigned
14       to newly created files.
15
16       The PAM module tries to get the umask value from the following places
17       in the following order:
18
19       ·   umask= argument
20
21       ·   umask= entry of the users GECOS field
22
23       ·   pri= entry of the users GECOS field
24
25       ·   ulimit= entry of the users GECOS field
26
27       ·   UMASK= entry from /etc/default/login
28
29       ·   UMASK entry from /etc/login.defs
30
31

OPTIONS

33       debug
34           Print debug information.
35
36       silent
37           Don´t print informative messages.
38
39       usergroups
40           If the user is not root, and the user ID is equal to the group ID,
41           and the username is the same as primary group name, the umask group
42           bits are set to be the same as owner bits (examples: 022 -> 002,
43           077 -> 007).
44
45       umask=mask
46           Sets the calling process´s file mode creation mask (umask) to mask
47           & 0777. The value is interpreted as Octal.
48

MODULE TYPES PROVIDED

50       Only the session type is provided.
51

RETURN VALUES

53       PAM_SUCCESS
54           The new umask was set successfully.
55
56       PAM_SERVICE_ERR
57           No username was given.
58
59       PAM_USER_UNKNOWN
60           User not known.
61

EXAMPLES

63       Add the following line to /etc/pam.d/login to set the user specific
64       umask at login:
65
66                   session optional pam_umask.so umask=0022
67
68
69

SEE ALSO

71       pam.conf(5), pam.d(5), pam(8)
72

AUTHOR

74       pam_umask was written by Thorsten Kukuk <kukuk@thkukuk.de>.
75
76
77
78Linux-PAM Manual                  06/16/2009                      PAM_UMASK(8)
Impressum