I copied huge number of (Android SDK) files from a shared directory to my system. Now all files which their MIME types are application/x-shellscript
or application/x-executable
, seems that are not executable. For example when I try to run mksdcard
I get this error:
$ ./mksdcard
bash: ./mksdcard: Permission denied
How I can find only files with those MIME types? And then how I can change those permissions?
Notes:
1- When I tried find <path> -type f -executable
with as root user it shows all files (even .PNG files) and when I tried that with standard user, it shows nothing. I do not know how to filter files with attention to their MIME type.
2- Share directory (source) currently is not accessible.