Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasperf/f40b32bbec37520a11d4 to your computer and use it in GitHub Desktop.
Save jasperf/f40b32bbec37520a11d4 to your computer and use it in GitHub Desktop.
Command to make all new files and directories created under the directory belong to the same group as that directory. #chown #unix
#make all files within a directory belong to a group
chmod g+s
@jasperf
Copy link
Author

jasperf commented Sep 24, 2014

And to change the group to apache to make it possible use chgrp apache /path/to/mydir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment