README 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. pam_umask — PAM module to set the file mode creation mask
  2. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  3. DESCRIPTION
  4. pam_umask is a PAM module to set the file mode creation mask of the current
  5. environment. The umask affects the default permissions assigned to newly
  6. created files.
  7. The PAM module tries to get the umask value from the following places in the
  8. following order:
  9. • umask= entry in the user's GECOS field
  10. • umask= argument
  11. • UMASK entry from /etc/login.defs
  12. • UMASK= entry from /etc/default/login
  13. The GECOS field is split on comma ',' characters. The module also in addition
  14. to the umask= entry recognizes pri= entry, which sets the nice priority value
  15. for the session, and ulimit= entry, which sets the maximum size of files the
  16. processes in the session can create.
  17. OPTIONS
  18. debug
  19. Print debug information.
  20. silent
  21. Don't print informative messages.
  22. usergroups
  23. If the user is not root and the username is the same as primary group name,
  24. the umask group bits are set to be the same as owner bits (examples: 022 ->
  25. 002, 077 -> 007).
  26. nousergroups
  27. This is the direct opposite of the usergroups option described above, which
  28. can be useful in case pam_umask has been compiled with usergroups enabled
  29. by default and you want to disable it at runtime.
  30. umask=mask
  31. Sets the calling process's file mode creation mask (umask) to mask & 0777.
  32. The value is interpreted as Octal.
  33. EXAMPLES
  34. Add the following line to /etc/pam.d/login to set the user specific umask at
  35. login:
  36. session optional pam_umask.so umask=0022
  37. AUTHOR
  38. pam_umask was written by Thorsten Kukuk <kukuk@thkukuk.de>.