All filenames mentioned here are directories.
The permissions of /media/disk
are 0744
(drwxr--r--
). The permissions of /media/disk/directory
are 0755
(drwxr-xr-x
). I do not own these directories in anyway.
Why can I ls /media/disk
, but can't ls /media/disk/directory
? My guess is that ls
needs run access to /media/disk
, but this would be stupid because if I have read access to a file (i.e. if r
is set), then I should be able to read the file.
In addition to the question above, if I'm correct in saying that the issue is due to lack of run access, I want to ask why what I said is stupid, isn't.
System information:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"
I don't think the proposed duplicate explains why this feature isn't stupid.