1

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

jp_
  • 160
  • 1
    "… wich I used once (successfully) to have a /dev/null directory […], and after trying to mount again after fusermount -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
  • nevermind that. how is it possible that root can't acess it? it has access permissions on my home directory, and even i cant acess it. yes, fuse is involved. see other question. i do not care about other users. – jp_ Jun 11 '23 at 15:11
  • I may be able to explain, I may be able to help you make it work, but only if I know what exact command you run as what user. – Kamil Maciorowski Jun 11 '23 at 18:42
  • 1
    Did you use -o allow_other when mounting the FUSE file system? Or is user_allow_other in /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
  • @KamilMaciorowski i ran ./nullfs ~/null, as root, and after rebooting my system it's still there. – jp_ Jun 12 '23 at 13:09

0 Answers0