Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

Linux: Force permissions for new files/directories

mkdir foo
chgrp somegroup foo
chmod g+ws o-rwx foo
setfacl -dm u::rwx,g::rwx,o::- foo

All files in directory foo will be created with 660 (directories with 770) permission in the group somegroup.

Tags: Technix

Don't be the product, buy the product!