From 474ca28ff1735fc0b127fb1365ff55eed9bc9d76 Mon Sep 17 00:00:00 2001 From: Matthew Thompson Date: Fri, 24 Nov 2017 09:01:12 -0500 Subject: [PATCH 1/3] Update chmod.md: Add recursive chmod Might not be approved, but this is the classic 755 on all directories, 644 on all files in a tree a la: https://stackoverflow.com/questions/18817744/change-all-files-and-folders-permissions-of-a-directory-to-644-755 As I just discovered `tldr`, I had to try my hand at changing a command --- pages/common/chmod.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/chmod.md b/pages/common/chmod.md index 92ad8ca4f4..00548adc84 100644 --- a/pages/common/chmod.md +++ b/pages/common/chmod.md @@ -21,3 +21,7 @@ - Give [o]thers (not in the file owner's group) the same rights as the group: `chmod o=g {{file}}` + +- Change permissions [-R]ecursively giving the [u]ser [r]ead, [w]rite, and e[X]ecute rights, and give [g]roup and [o]thers [r]ead and e[X]ecute rights but not [-w]rite rights: + +`chmod -R u+rwX,go+rX,go-w {{directory}}` From 9d11a1a38ef74334293613fe658ebbbd4076cafd Mon Sep 17 00:00:00 2001 From: Matthew Thompson Date: Wed, 29 Nov 2017 19:05:58 -0500 Subject: [PATCH 2/3] Update chmod.md Add example avoiding `X` --- pages/common/chmod.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/chmod.md b/pages/common/chmod.md index 00548adc84..df9dd9617f 100644 --- a/pages/common/chmod.md +++ b/pages/common/chmod.md @@ -22,6 +22,6 @@ `chmod o=g {{file}}` -- Change permissions [-R]ecursively giving the [u]ser [r]ead, [w]rite, and e[X]ecute rights, and give [g]roup and [o]thers [r]ead and e[X]ecute rights but not [-w]rite rights: +- Change permissions [-R]ecursively giving [g]roup and [o]thers the abililty to [w]rite: -`chmod -R u+rwX,go+rX,go-w {{directory}}` +`chmod -R g+w,o+w {{directory}}` From 42b679e93ba880ecbbdb4a698414ace74b6fe0c4 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Thu, 30 Nov 2017 08:56:20 +0530 Subject: [PATCH 3/3] chmod: remove square brackets around "recursively" --- pages/common/chmod.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/chmod.md b/pages/common/chmod.md index df9dd9617f..61a5011e72 100644 --- a/pages/common/chmod.md +++ b/pages/common/chmod.md @@ -22,6 +22,6 @@ `chmod o=g {{file}}` -- Change permissions [-R]ecursively giving [g]roup and [o]thers the abililty to [w]rite: +- Change permissions recursively giving [g]roup and [o]thers the abililty to [w]rite: `chmod -R g+w,o+w {{directory}}`