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}}`