码迷,mamicode.com
首页 > 其他好文 > 详细

chmod -R o+rX /data

时间:2016-06-24 10:39:26      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:

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.  

chmod -R o+rX /data

标签:

原文地址:http://www.cnblogs.com/rusking/p/5613243.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!