保险丝allow_root未设置-为什么通过sudo可以看到用户挂载中的文件?

保险丝allow_root未设置-为什么通过sudo可以看到用户挂载中的文件?

allow_root为什么root没有设置时可以看到用户文件fuse? (user2 获取permission deniedls /media/user1/Data但可以通过sudoLinux Mint 19 查看文件)。

user2@PC:~$ cat /etc/fuse.conf
...
# Allow non-root users to specify the allow_other or allow_root mount options.
#user_allow_other

user2@PC:~$ mount 
...
/dev/sda5 /media/user1/Data fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0

user2@PC:~$ man fuse
...
   allow_other
          This option overrides the security measure restricting  file  access  to  the  user
          mounting the filesystem.  So all users (including root) can access the files.  This
          option is by default only allowed to root, but this restriction can be removed with
          a configuration option described in the previous section.

user2@PC:~$ ls /media/user1/Data
ls: cannot access '/media/user1/Data': Permission denied


user2@PC:~$ sudo -i
# ls /media/user1/Data
...list of files

相关内容