umask
Manage the read/write/execute permissions that are masked out (i.e. restricted) for newly created files by the user. More information: <https://manned.org/umask>.
Install
- All systems
-
curl cmd.cat/umask.sh
- Debian
-
apt-get install execline
- Ubuntu
-
apt-get install execline
- Alpine
-
apk add bash
- Arch Linux
-
pacman -S bash
- Kali Linux
-
apt-get install execline
- CentOS
-
yum install bash
- Fedora
-
dnf install bash
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install execline
- OS X
-
brew install bash
- Raspbian
-
apt-get install bash
- Dockerfile
- dockerfile.run/umask
- Docker
-
docker run cmd.cat/umask umask
powered by Commando
Manage the read/write/execute permissions that are masked out (i.e. restricted) for newly created files by the user. More information: <https://manned.org/umask>.
-
Display the current mask in octal notation:
umask
-
Display the current mask in symbolic (human-readable) mode:
umask -S
-
Change the mask symbolically to allow read permission for all users (the rest of the mask bits are unchanged):
umask a+r
-
Set the mask (using octal) to restrict no permissions for the file's owner, and restrict all permissions for everyone else:
umask 077
© tl;dr; authors and contributors