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

15 managing disk - understanding /etc/fstab xfs_admin mount -o rw,remount /

teamcity Automatic Agent Start under Linux