首页 > 其他 > 详细

mount 过的文件夹无法设置acl 权限

时间:2019-07-30 13:59:09      阅读:161      评论:0      收藏:0      [点我收藏+]
This sounds like the default mount behavior is not allowing ACLs on the filesystem. getfacl will report the normal filesystem permissions without error, but setfacl is unable to operate because the filesystem is mounted without the ACL option.

You can add this in /etc/fstab or by modifying your filesystem options.

Assuming you have the /home filesystem on /dev/sda, you can do the following:

Modify Filesystem method:

sudo /sbin/tune2fs -o +acl /dev/sda

Modify /etc/fstab method:

/dev/sda /home ext3 defaults,acl 1 2

Using either method, the filesystem has to be remounted to take effect. You can accomplish this by rebooting, or by running

sudo /bin/mount -o remount /home

mount 过的文件夹无法设置acl 权限

原文:https://www.cnblogs.com/mu-zhang/p/11269426.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!