首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    setfacl解释「建议收藏」

    setfacl:设置文件访问控制列表,针对单独文件,设置单独用户权限 用法: setfacl -参数 用户权限 文件 参数:-m, –modify=acl 更改文件的访问控制列表 -M, –modify-file=file 从文件读取访问控制列表条目更改 -x, –remove=acl 根据文件中访问控制列表移除条目 -X, –remove-file=file 从文件读取访问控制列表条目并删除 -b, –remove-all 删除所有扩展访问控制列表条目 -k, –remove-default 移除默认访问控制列表 –set=acl 设定替换当前的文件访问控制列表 –set-file=file 从文件中读取访问控制列表条目设定 –mask 重新计算有效权限掩码 -n, –no-mask 不重新计算有效权限掩码 -d, –default 应用到默认访问控制列表的操作 -R, –recursive 递归操作子目录 -L, –logical 依照系统逻辑,跟随符号链接 -P, –physical 依照自然逻辑,不跟随符号链接 –restore=file 恢复访问控制列表,和“getfacl -R”作用相反 –test 测试模式,并不真正修改访问控制列表属性 -v, –version 显示版本并退出 -h, –help 显示本帮助信 getfacl:获得文件acl详细信息 用法:getfacl 参数 文件 参数: -a, –access display the file access control list only -d, –default display the default access control list only -c, –omit-header do not display the comment header -e, –all-effective print all effective rights -E, –no-effective print no effective rights -s, –skip-base skip files that only have the base entries -R, –recursive recurse into subdirectories -L, –logical logical walk, follow symbolic links -P, –physical physical walk, do not follow symbolic links -t, –tabular use tabular output format -n, –numeric print numeric user/group identifiers -p, –absolute-names don’t strip leading ‘/’ in pathnames -v, –version print version and exit -h, –help this help text

    01

    apache不允许在该目录下使用符号连接

    对/var/www/html目录的一个权限的设置,options中Indexes表示当网页不存在的时候允许索引显示目录中的文件,FollowSymLinks是否允许访问符号链接文件。有的选项有ExecCGI表是否使用CGI,如Options Includes ExecCGI FollowSymLinks表示允许服务器执行CGI及SSI,禁止列出目录。SymLinksOwnerMatch表示当符号链接的文件和目标文件为同一用户拥有时才允许访问。AllowOverrideNone表示不允许这个目录下的访问控制文件来改变这里的配置,这也意味着不用查看这个目录下的访问控制文件,修改为:AllowOverride All 表示允许.htaccess。Order对页面的访问控制顺序后面的一项是默认选项,如allow,deny则默认是deny,Allowfromall表示允许所有的用户,通过和上一项结合可以控制对网站的访问控制

    02
    领券