What Is the Default Umask Value in Linux?
Contents

The default umask for the root user is 022 result into default directory permissions are 755 and default file permissions are 644.

What is the default value of umask?

By default, the system sets the permissions on a text file to 666, which grants read and write permission to user, group, and others, and to 777 on a directory or executable file. The value assigned by the umask command is subtracted from the default.

What does umask 0002 mean?

The umask number controls the default permissions of newly created files. Rather than the number specifying the permission, the umask number indicates restrictions on the file permissions. … Umask values are usually 0002 or 0022 – restrict write permission by others or group and others.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest