So I have a particular ext4 drive that doesn't allow me to execute files. I have the following example in bash where even with sudo and with the file having execute permissions for all users, the file does not execute. If I move the file to an alternate partition, it works fine. Thoughts?
$ ./pycharm.sh
bash: ./pycharm.sh: Permission denied
$ sudo ./pycharm.sh
sudo: unable to execute ./pycharm.sh: Permission denied
$ sudo -s
# ./pycharm.sh
bash: ./pycharm.sh: Permission denied
# lsattr pycharm.sh
-------------e-- pycharm.sh
# ls -la pycharm.sh
-rwxr-xr-x 1 me me 5908 Nov 20 03:18 pycharm.sh
Maybe you have set your fstab options to prevent execution on this filesystem?
Have a look at /etc/fstab, maybe you've set the noexec option.