
Linux
What Is umask and How to Set It Correctly on Linux
Learn what the Linux umask is, how it clears permission bits on new files and directories, and where to set it for a shell, a login or a service.
5 min read
Tag
3 posts

Learn what the Linux umask is, how it clears permission bits on new files and directories, and where to set it for a shell, a login or a service.

Use the chmod command in numeric and symbolic modes, read octal permissions, set execute bits only where needed, and avoid the recursive mistakes.

Linux file permissions explained: read, write and execute bits, octal and symbolic chmod, owners and groups, umask, and the setuid, setgid and sticky bits.