Ask Your Question
1

permission denied

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

Ben Hoffman gravatar image

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

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.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

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

Mark Jones gravatar image

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

Wingware Admin gravatar image

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

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 gravatar imageBen 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 gravatar imageWingware Support ( 2017-12-11 20:48:00 -0500 )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

2 followers

Stats

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

Seen: 39 times

Last updated: Mar 07