Nautilus does not open a file for view when it has the Execute permission

Am attempting to open some html, php, js and also css documents i replicated to/ var/www. If they have the Execute approval (Allow execute documents as program) alternative set i can closed them with gedit which i did generally in Ubuntu 10.10 and also examined the other day mounting 10.10 to see to it.

If i remove the execute alternative it functions and also opens up with gedit.

I additionally set Nautilus to Run executable message documents when they are opened up in the Nautilus choices (Behavior area).

2022-06-07 14:33:28
Source Share
Answers: 2

We require to determine what we desire Nautilus to do with executable message documents. From Edit - > Preferences - > Behaviour we will certainly have the selection of 3 alternatives:

  • Run executable message documents when they are opened up:

    Always runs these documents on opening or on computer mouse click

  • View executable message documents when they are opened up:

    Always open these documents in your typical message editor/viewer

  • Ask each time:

    Lets us pick what to do in an added window:

2022-06-07 14:59:10

I'm not particular I recognize, yet if you remove the execute approval from folders, after that you will not have the ability to look inside them. (So if you got rid of the execute approval from /var/www, you would not have the ability to see any one of the documents inside.)

Attempt the adhering to in Terminal. (It will certainly change permissions on every little thing under/ var/www.)

chmod u+x -R /var/www
find /var/www -type f | xargs chmod u-x

Now the folders need to be executable (so you can look within them), yet the documents are not.

Does that aid?

2022-06-07 14:52:40