From b289e56fc44b43e4adc9b4e44a5787452ac7a8ac Mon Sep 17 00:00:00 2001 From: Jacob Roeland Date: Sat, 11 Jan 2020 17:10:48 -0500 Subject: [PATCH] chmod: remove all rights (#3748) * chmod: remove all rights * chmod: consistent bracket use --- pages/common/chmod.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/common/chmod.md b/pages/common/chmod.md index 6cb4cdf42b..e9b4fe26ad 100644 --- a/pages/common/chmod.md +++ b/pages/common/chmod.md @@ -6,22 +6,26 @@ `chmod u+x {{file}}` -- Give the user rights to [r]ead and [w]rite to a file/directory: +- Give the [u]ser rights to [r]ead and [w]rite to a file/directory: `chmod u+rw {{file_or_directory}}` -- Remove executable rights from the [g]roup: +- Remove e[x]ecutable rights from the [g]roup: `chmod g-x {{file}}` -- Give [a]ll users rights to read and execute: +- Give [a]ll users rights to [r]ead and e[x]ecute: `chmod a+rx {{file}}` -- Give [o]thers (not in the file owner's group) the same rights as the group: +- Give [o]thers (not in the file owner's group) the same rights as the [g]roup: `chmod o=g {{file}}` +- Remove all rights from [o]thers: + +`chmod o= {{file}}` + - Change permissions recursively giving [g]roup and [o]thers the abililty to [w]rite: `chmod -R g+w,o+w {{directory}}`