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:
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
Post a Comment