find . -type d -exec chmod +x {} \\;
I found out that the above command is not the solution.
I can't change to a directory, but I can list its contents with ls -la
, and it looks like this.
d????????? ? ? ? ? ? .
d????????? ? ? ? ? ? ..
?????????? ? ? ? ? ? '30drop - Tools For The Dimensional Step [2015] [FLAC]'
?????????? ? ? ? ? ? 'Ada Kaleh - Zâna Zorilor'
?????????? ? ? ? ? ? 'Aes Dana - Perimeters [2011] [FLAC]'
?????????? ? ? ? ? ? 'After Hour - Feel It & Waterfalls [1991] [FLAC]'
I tried changing the owner and tried setting permissions to 777, but neither one works. It's either permission denied
or operation not permitted
. The files are definitely there and they are not deleted, but how do I regain access to them?
I really did not have any idea why a chmod -x
recursive command would be dangerous like this, but it definitely is.