James's Ramblings

umask

Created: January 13, 2020
  • Subtract the umask from 7 to get the permissions that will result from a umask.
  • For example, if a umask is 022, the result will be 755.
  • The umask command is: umask.
  • umask can be changed temporarily and can be added to bashrc.
  • system-wide default umask (pam_umask) is set in /etc/login.defs for RHEL 8 and Debian 10.
  • In older Linux distributions, this was set in bashrc or bash_profile.