设置ACL的时候出现:Operation not supported

在对home挂载点的文件进行setfacl操作时,出现Operation not supported
setfacl: ./www/webroot/wp-login.php: Operation not supported
setfacl: ./www/webroot/license.txt: Operation not supported
setfacl: ./www/webroot/wp-trackback.php: Operation not supported
setfacl: ./www/webroot/readme.html: Operation not supported
setfacl: ./www/webroot/wp-signup.php: Operation not supported
setfacl: ./www/webroot/index.php: Operation not supported
setfacl: ./www/wordpress: Operation not supported

原因:挂载磁盘时没有设置acl选项。
[root@renyiwei home]# mount -l
/dev/xvda1 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)
xenfs on /proc/xen type xenfs (rw)
/dev/xvdb1 on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

最后一个选项只有rw,我们通过修改/etc/fstab这个文件,修改挂载磁盘时增加acl选项
/dev/xvdb1 /home ext4 rw,acl 0 0
然后重新挂载一下磁盘。

发表评论