无法启用 ACL

无法启用 ACL

我从这里开始:https://help.ubuntu.com/community/FilePermissionsACLs

我看到我的磁盘上的所有挂载点都默认启用了 acl,但$ mount | grep acl没有任何结果。

我尝试在 /etc/fstab 中明确启用 acl 并重新挂载 root,但这也不起作用。

mount如果没有显示,acl 是否可能正在工作?我显然在文件上有 acl 条目,但我被拒绝权限。

user@host:~$ sudo tune2fs -l /dev/mapper/ubuntu--vg-ubuntu--lv 
tune2fs 1.45.5 (07-Jan-2020)
Filesystem volume name:   <none>
Last mounted on:          /
Filesystem UUID:          6a12565d-9b50-4250-be1d-f7d9fe20461f
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              12156928
Block count:              48627712
Reserved block count:     2431385
Free blocks:              38642088
Free inodes:              11984210
First block:              0
Block size:               4096
Fragment size:            4096
Group descriptor size:    64
Reserved GDT blocks:      1024
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Mon Mar 14 19:39:19 2022
Last mount time:          Thu Apr 28 12:21:11 2022
Last write time:          Thu Apr 28 12:21:10 2022
Mount count:              8
Maximum mount count:      -1
Last checked:             Mon Mar 14 19:39:19 2022
Check interval:           0 (<none>)
Lifetime writes:          161 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:           256
Required extra isize:     32
Desired extra isize:      32
Journal inode:            8
Default directory hash:   half_md4

答案1

是的,ACL 可以在不mount显示的情况下工作,因为它在我的计算机上工作。我被拒绝访问的文件是损坏的符号链接。

相关内容