6. Permission Management

Understanding umask

  • The umask is a shell setting that defines a mask that will be subtracted from the default permissions.

  • Default permissions on directories are 777

  • Default permissions on files are 666

    • umask 022 will set default permissions on files to 644

    • umask 027 will set default permissions on directories to 750