Ask Your Question

permission denied

asked 2017-12-11 17:51:00 -0600

Ben Hoffman's avatar

updated 2019-03-13 10:02:03 -0600

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.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-12-11 18:07:00 -0600

Mark Jones's avatar

updated 2019-03-07 08:10:20 -0600

Wingware Admin's avatar

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.

edit flag offensive delete link more


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.thanks.

Ben Hoffman's avatar Ben Hoffman  ( 2017-12-11 19:07:00 -0600 )edit

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.

Wingware Support's avatar Wingware Support  ( 2017-12-11 20:48:00 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-12-11 17:51:00 -0600

Seen: 710 times

Last updated: Mar 07 '19