From eb878ce3dd8fb187ec334d44f3efe70d188bbacf Mon Sep 17 00:00:00 2001 From: Ilya Tribusean Date: Wed, 20 Apr 2016 00:24:32 +0300 Subject: [PATCH] umask: add page (#834) --- pages/linux/umask.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/linux/umask.md diff --git a/pages/linux/umask.md b/pages/linux/umask.md new file mode 100644 index 0000000000..fb6c23582b --- /dev/null +++ b/pages/linux/umask.md @@ -0,0 +1,19 @@ +# umask + +> Manage the read/write/execute permissions that are masked out (i.e. restricted) for newly created files by the user. + +- 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}}`