First time here? Check out the FAQ!
1

permission denied

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 test.py

Is there some way to change this ?

Thank you.

Ben Hoffman's avatar
11
Ben Hoffman
asked 2017-12-11 17:51:00 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2019-03-13 10:02:03 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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.

Mark Jones's avatar
83
Mark Jones
answered 2017-12-11 18:07:00 -0500
Wingware Admin's avatar
231
Wingware Admin
updated 2019-03-07 08:10:20 -0500
edit flag offensive 0 remove flag delete link

Comments

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 -0500) edit

Wing does not set files you create with it to executable.  That can be done with 'chmod +x filename.py' 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 -0500) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer