zoukankan      html  css  js  c++  java
  • setfacl报错Operation not supported

    对文件目录setfacl权限设置时报错Operation not supported

    Google一下,发现是分区acl权限问题

     一般情况下(ext4),默认acl支持都是加载的.但如果遇到二般情况,文件系统加载时没有指定acl.我们可以能过

    以下的两种方法:

     1、手动挂载

    mount -o acl /dev/mapper/vg_server1-logs /home
    [root@excbjdcpapp05 usr]# mount -l
    /dev/mapper/VolGroup-lv_root on / type ext4 (rw)
    proc on /proc type proc (rw)
    sysfs on /sys type sysfs (rw)
    devpts on /dev/pts type devpts (rw,gid=5,mode=620)
    tmpfs on /dev/shm type tmpfs (rw)
    /dev/sda1 on /boot type ext4 (rw)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
    /dev/mapper/vg_server1-logs on /home type ext4 (rw,acl)

    2、编写fstab文件

    vi /etc/fstab
    /dev/mapper/vg_server1-logs       /home         ext4    defaults,acl       0

    然后重新挂载

    mount -o remount /home

    再次setfacl设置

    setfacl -R -m u:aclread:rwx /home/usr
  • 相关阅读:
    运算符
    格式化输出
    while循环
    if 判断语句
    Swift # 字典
    Swift # 数组
    Swift # 字符串
    [ Swift # 函数 ]
    [ Bubble Sort ]& block
    数据结构 # 二叉树/堆/栈
  • 原文地址:https://www.cnblogs.com/paul8339/p/9257232.html
Copyright © 2011-2022 走看看