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
? – steve Jul 31 at 21:56chmod u+x script.py
– Gordster Jul 31 at 22:03strace -f
on the shell, then try to run the script, and see where you get the error – mmusante Aug 1 at 1:03/dev/mapper/systemvg-home on /home type ext4 (rw,noexec,nosuid,nodev)
. Thank you. – dejdej Aug 1 at 6:33