7

How do I mark a file as executable using a graphical interface (GUI)?

kiri
  • 28,246
  • 16
  • 81
  • 118
Lincity
  • 25,371

3 Answers3

11

Simple Permissions Tab (default)

First, right click on your file and choose 'Properties'.

enter image description here

Switch to the 'Permissions' tab and then simply check the box that says 'Allow executing file as program'.

enter image description here

idbrii
  • 3,162
Tommy Brunn
  • 9,751
7

Advanced Permissions Tab

Just right click the file, choose "Properties" (at the very bottom), click in the "Permissions" Tab and add the executable option to the file, which may differ from this in the screenshot in a certain cases.

enter image description here

Sometimes I have found a "Make this file executable" option in certain kind of files.

You should be the owner of the file in order to perform this without a hassle. Take a look at this in order to change file/folder ownership: General Rules for dealing with File Permissions

Good luck!

  • 1
    If you are in Ubuntu 10.10, that permissions tab would look like this: http://i.imgur.com/JfV5H.png – Tommy Brunn Apr 16 '11 at 16:08
  • It is weird. I am on Ubuntu 10.10 and my permissions tab looks like I have placed in the screenshot. Thank you anyway. – Geppettvs D'Constanzo Apr 16 '11 at 17:04
  • @Tommy Just make that a separate answer that way we have them both up front! – Jorge Castro Apr 16 '11 at 20:49
  • 1
    How your permissions tab looks depends on a gconf key; Tommy's screenshot shows the default, simple variant for "normal" end users, Geppettvs's screenshot shows the "technical" variant for advanced users. – JanC Apr 16 '11 at 21:27
  • 2
    You can get Geppettvs's permissions dialog with gconftool --set "/apps/nautilus/preferences/show_advanced_permissions" --type=boolean true – idbrii May 06 '11 at 18:07
  • Oh! good! thank you pydave :D This information is useful for me! I appreciate your help. – Geppettvs D'Constanzo May 06 '11 at 19:19
1

There two ways (3 in a sense) to do this. Since Geppettvs and Tommy covered two of them already, I will cover the other.

Open the Alt+F2 dialogue (run dialogue) and type:

chmod +x /path/to_file/and/name_of_file and press Enter.

If the file is in a folder you cannot access, use:

gksu chmod +x /path/to_file/and/name_of_file and press enter

Lincity
  • 25,371
RolandiXor
  • 51,541