首页 > 其他 > 详细

chmod -R o+rX /data

时间:2016-06-24 10:36:54      阅读:336      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!