*nix: Default group for files in directory
Ever wish you could change the default group for new files/directories in a Unix/Linux-based directory? Tired of creating a new file/directory and having to "chmod" it?
Boom:
sudo chown root:webserver /srv/www/ -R
sudo chmod g+s www/ -R
sudo chmod 774 www/ -R
Written by Trevor N. Suarez
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#