What Is Umask and How to Use it Effectively
Posted on by Freddy Reese | Updated:
Category: Tutorials | Tags: Access Level, Execute, File Permissions, Group, Mask, Numeric Headings, Octal, Octal Number, Octal Value, Other, Permission Classes, Permission Sets, Permission Symbols, Permissions, Read, Symbolic Headings, Symbolic Permissions, Umask, User, User File Creation Mode, Usergroup, World, Write
Reading Time: 6 minutes
What is Umask in Linux?
Umask (short for user file-creation mode mask) is used by UNIX-based systems to set default permissions for newly created files and directories. It does this by masking or subtracting these permissions. For example, with the usual Umask being set to 022 on most systems all the new files we create will subtract the Umask value from full permissions (for files that would be 666 - 022 = 644). Umask can be expressed in octal or symbolic values.
Have Some Questions?
Our Sales and Support teams are available 24 hours by phone or e-mail to assist.