chmod -R +X /dir applies execution to folders only

chmod -R +X /dir applies execution to folders only

the capital X means: set the executable bit only if the target a) is a directory b) has already at least one executable bit set for any one of user, group, others.

alternative:
chmod -R g=u /var/somedirectory  
This will give any file the group permissions identical to the user's permission.

Comments

Popular posts from this blog

HAproxy logging

tomcat catalina coyote jasper cluster

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all