Permissions Notes
Change permissions on a directory recursively without applying Execute to files
Using a large "X" applies execute to Directories but not files.
chmod -R u=rwX,g=rwX docker-compose-files/
SetGID
Having an s
in the permissions list of ls -al
is the setgid bit. When another user creates a file or directory under such a setgid directory, the new file or directory will have its group set as the group of the directory's owner, instead of the group of the user who creates it.
- Add
s
withchmod g+s directory
- Remove it with
-s
Note
According to Sven Mascheck's page on special permission bits, the u+s
bit only has an effect on three non-Linux operating systems