From 1897c23dd8a17cbe2e8037b19d81738ff5260382 Mon Sep 17 00:00:00 2001 From: iam4tune Date: Wed, 6 Mar 2024 14:40:29 -0600 Subject: [PATCH 1/2] Included additional information for using chgrp --- docs/workflow_solutions/shell.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/workflow_solutions/shell.md b/docs/workflow_solutions/shell.md index 9b64f9209..eb6d2a07a 100644 --- a/docs/workflow_solutions/shell.md +++ b/docs/workflow_solutions/shell.md @@ -593,6 +593,18 @@ For single files use `chgrp `. To change a directory and all of its contents recursively use `chgrp -hR `. The `-h` flag will avoid walking through the targets of symbolic links. +As a best practice, there could lso be instances where you will need to verify the parent directory/directories before you make changes, do the following, when a case like this arises; + +1. Check that the parent directory/directories have the `setgid` (i.e. `s`) bit in the file permission, when you run the `ls -l `. + +1. If the `setgid` bit is missing, change group ownership of the directory using the below `chgrp` command. + + `chgrp ` + +1. We can now apply the `setgid` permission to the directory using this syntax. + + `chmod g+s ` + !!! warning From 9d5fc682240814ba6e4cdddc1a35b1aa41d27773 Mon Sep 17 00:00:00 2001 From: iam4tune Date: Wed, 6 Mar 2024 14:47:45 -0600 Subject: [PATCH 2/2] Corrected a typo --- docs/workflow_solutions/shell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/workflow_solutions/shell.md b/docs/workflow_solutions/shell.md index eb6d2a07a..7a50edb5d 100644 --- a/docs/workflow_solutions/shell.md +++ b/docs/workflow_solutions/shell.md @@ -593,7 +593,7 @@ For single files use `chgrp `. To change a directory and all of its contents recursively use `chgrp -hR `. The `-h` flag will avoid walking through the targets of symbolic links. -As a best practice, there could lso be instances where you will need to verify the parent directory/directories before you make changes, do the following, when a case like this arises; +As a best practice, there could also be instances where you will need to verify the parent directory/directories before you make changes, do the following, when a case like this arises; 1. Check that the parent directory/directories have the `setgid` (i.e. `s`) bit in the file permission, when you run the `ls -l `.