I have recently found a very odd issue I have not encountered before.
╭─daemonslayer2048@desktop ~
╰─$ ls -l /tmp/project
ls: cannot access '/tmp/SpeedTest/lib': Permission denied
ls: cannot access '/tmp/SpeedTest/First_Boot.py': Permission denied
ls: cannot access '/tmp/SpeedTest/help.sh': Permission denied
ls: cannot access '/tmp/SpeedTest/ResetDefaults.py': Permission denied
ls: cannot access '/tmp/SpeedTest/Manager.py': Permission denied
ls: cannot access '/tmp/SpeedTest/Maintenance.py': Permission denied
total 0
-????????? ? ? ? ? ? First_Boot.py
-????????? ? ? ? ? ? help.sh
d????????? ? ? ? ? ? lib
-????????? ? ? ? ? ? Maintenance.py
-????????? ? ? ? ? ? Manager.py
-????????? ? ? ? ? ? ResetDefaults.py
Is anyone familiar with what may be going on here? Did something get corrupted? I tried searching first but I only seem to get explanations of file permissions nothing to explain how this happened and if I can fix it. I tried setting an owner and permissions to the files but they remain unchanged.
Edit: Added ls -ld
of project folder.
╭─daemonslayer204@desktop ~
╰─$ ls -ld /tmp/project/
drw-------. 3 daemonslayer204 daemonslayer204 380 Jun 17 15:56 /tmp/project/
/tmp/project
to the question (ls -ld /tmp/project
). Looks like the executable bits are not set. – Freddy Jun 18 '20 at 18:55x
(execute) for directories) and is necessary in order to access the inodes of the contained files, which store their metadata (including ownership and permissions). – fra-san Jun 18 '20 at 20:08