chmod -R o+rX /data

When using  chmod -R o+rx /data , you set the execute permission on all directories as well as files in the /data directory.

To set the execute permission to directories only, and not to files, use  chmod -R o+rX /data . The uppercase X ensures that files will not get the execute permission unless the file has already set the execute permission for some of the entities. That makes X the more intelligent way of dealing with execute permissions; it will avoid setting that permission on files where it is not needed.  

posted on 2016-06-24 10:09  遠離塵世の方舟  阅读(977)  评论(0编辑  收藏  举报

导航