I have a folder, wich I used once (successfully) to have a /dev/null directory (see this question), and after trying to mount again after fusermount -u, I get permission denied. asin:
$ sudo su
# cd /home
# ls -ld user
drwxr-xr-x 23 user user 12288 jun 11 08:13 user
# cd user
# ls -ld null
ls: cannot access 'null': Permission denied
# chown user:user null
chown: cannot access 'null': Permission denied
# exit
$ ls -ld null
drwxrwxrwx 3 root root 0 jan 1 1970 null
as you can see, even though the folder is owned by root, root cant access it. also root has execute permissions on my home directory just fine
/dev/nulldirectory […], and after trying to mount again afterfusermount -u, I get …" – What exactly did you do? Post the explicit shell commands you used, not (i.e. not only) your description or interpretation. Is FUSE involved? Does this help? How to mount FUSE (e.g. unionfs) so that all users will have access to it? – Kamil Maciorowski Jun 11 '23 at 11:20-o allow_otherwhen mounting the FUSE file system? Or isuser_allow_otherin/etc/fuse.conf? Does https://unix.stackexchange.com/questions/17402/why-does-root-get-permission-denied-when-accessing-fuse-directory answer your question? – Ljm Dullaart Jun 12 '23 at 12:07./nullfs ~/null, as root, and after rebooting my system it's still there. – jp_ Jun 12 '23 at 13:09