如何启用ACL?

Dam*_*ano 3 linux permissions acl

我已经在我的 Ubuntu 上安装了 ACL:

aptitude install acl
Run Code Online (Sandbox Code Playgroud)

你下一步怎么做 ?/etc/fstab ?

  # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda1 during installation
    UUID=54dd976c-b95d-4f44-b4f7-516107dbed85 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda2 during installation
    UUID=b03c5549-9b4a-444f-a1ff-6c1e3c767836 none            swap    sw              0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
Run Code Online (Sandbox Code Playgroud)

谢谢

小智 5

默认情况下不启用 ext4 ACL(至少在 debian 挤压上)。因此,您的方法是在/etc/fstab 中添加acl选项

…
UUID=54dd976c-b95d-4f44-b4f7-516107dbed85 /               ext4    errors=remount-ro,acl ,0       1
…
Run Code Online (Sandbox Code Playgroud)

...为了避免重新启动,您可以立即应用它:

# mount -oremount /
Run Code Online (Sandbox Code Playgroud)

(不敢相信默认情况下它没有启用......)