permission denied

7 months ago by
I've just started using Wingware personal edition on Kali Linux. My Python files are all saved without execution permission, e.g.

-rw-r--r-- 1 root root 14 Dec 10 15:54

Is there some way to change this ?

Thank you.
Community: Wing Python IDE

1 Answer

7 months ago by

Looking at your file, you created them as root  (or you are running wing as root)

You will need to sudo and change ownership back to yourself.

If you chmod +x on the files they should stay that way, but you really don't want that, most python files are imported, not executed by the shell.

Running as root is a pretty wrong thing to do, you should be able to find some info about this online.

I was running wing as root. So, I added a new user, but with the same result. So, it's still has no execution permission.
written 7 months ago by Ben Hoffman  
Wing does not set files you create with it to executable.  That can be done with 'chmod +x' for the files where it's needed, but as Mark noted most Python files should not be executable because they are imported instead.
written 7 months ago by Wingware Support  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »