How To Set Default File Permissions For All Folder In A Directory

How can I set default file permission for all folders from a specific folder.

You can use command setfacl

here is the example

chmod g+s <directory>  //set gid 
setfacl -d -m g::rwx /<directory>  //set group to rwx default 
setfacl -d -m o::rx /<directory>   //set other
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments