setfacl命令

SetFacl命令

1. 取消setfacl权限

setfacl -b xxx ### xxx表示目录或文件

2. 赋予权限setfacl权限

setfacl -m u:user:rx /usr/local/topconfig ### topconfig目录必须带x权限,否则会不能进入

3.赋予权限让该目录下的文件继承setfacl权限

setfacl -m -R d:u:user:xx /usr/local/topconfig/* ###前提是先执行步骤2,否则还是连进入的权限都没有,则topconfig目录下的文件就有继承权限

 

                                                                                                                              

附录

http://cn.linux.vbird.org/linux_basic/0410accountmanager_3.php ###鸟哥的讲解非常详细

http://man.linuxde.net/setfacl

http://blog.csdn.net/qwq_qaq/article/details/54882203

posted @ 2017-03-01 11:39  FlyBack  阅读(702)  评论(0编辑  收藏  举报