GO KALI FREE
Permission Commands

umask Linux Command

Sets the default permission mask for newly created files and directories.

What does umask do?

Sets the default permission mask for newly created files and directories.

Syntax

umask [mode]

Practical example

umask 022

Related Permission Commands

chgrp

Changes the group ownership of a file or directory.

getfacl

Displays the Access Control List (ACL) of a file or directory.

chown

Changes the owner and/or group of a file or directory.

setfacl

Sets or modifies the Access Control List (ACL) for a file or directory.

chmod

Changes the read, write, and execute permissions of files and directories.

sudo -l

Lists the allowed and forbidden sudo commands for the current user.