diff --git a/docs/workflow_solutions/shell.md b/docs/workflow_solutions/shell.md index 9b64f9209..7a50edb5d 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 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 `. + +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