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