Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i am having a python script #!/usr/bin/env python in top of my script? following is the permission i had set

-rwxr-xr-x 1 user1 user2 6423 Nov 15 15:12 test

i tried executing the script as user1 its giving me permission denied?

when i do

whoami it shows user1 and umask is 0022, user1 has bash as his default shell

Any ideas??

share|improve this question
trying "python test" might give you clue –  coincoin Nov 15 '12 at 8:26
@EricDANNIELOU python test works fine when i do ./test its giving permission denied –  LINUX4U Nov 15 '12 at 8:27
What do you get when you run which python? Can you try putting the result of that directly into the shebang? E.g. #!/usr/bin/python2.7 ? –  Theuni Dec 7 '12 at 19:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.