I have a python script, in which I have the following shebang #!/usr/bin/python
the script permissions are -rwxrwxrwx. 1 user user 709 script.py
the owner of the script is the same as the user I use to run the script.
I do not understand why I get Permission denied when I run ./script.py
but I can run it with python script.py
or /usr/bin/python script.py
. What I am missing?
Linux distribution is RedHat 6
noexec
?chmod u+x script.py
strace -f
on the shell, then try to run the script, and see where you get the error/dev/mapper/systemvg-home on /home type ext4 (rw,noexec,nosuid,nodev)
. Thank you.