4

So I'm trying to create a desktop icon for an application, and I dragged it from the top-left menu (I think it's called Dash or something). I clicked on it and it says it is untrusted and refuse to execute it.

I found out that I have go to Permission and check the checkbox saying "Allow executing file as program". However, when I open up the Permission dialog it says "I am not the owner, therefore I cannot change those settings." Everything is disabled and I can't check it.

enter image description here

Why is this happening and how do I "make myself the owner"?

Derek 朕會功夫
  • 155
  • 1
  • 1
  • 6

3 Answers3

5
  • Open a terminal with Ctrl + Alt +T then run this command:

    cd ~/Desktop
    sudo chmod +x sublime_text.desktop
    

    Change Desktop to whatever your desktop is called in your language. chmod is a command line command to change permissions, +x make it executable

  • or instead you can run:

    cd ~/Desktop
    sudo chown yourusername sublime_text.desktop
    

    chown is command line command to change file owner

user.dz
  • 49,176
2
  1. Open a terminal with ctrl+alt+T and type in the terminal: gksu nautilus

  2. Enter your password when prompted and your file browser should emerge.

    This will make you root until you close the file browsing window, which is necessary to edit the file (as you can see that only "root" has permission.

  3. In here navigate to the file you want to edit. Now you can set the file to execute as program.

Be advised to use gksu with extreme caution. Everything you delete will be deleted permanently. Making changes to the wrong files is really easy this way and could leave you with an unusable system!

This is AFAIK about getting ownership of a file that belongs to Root

Nkciy84
  • 997
0

Figured out an answer:

  • Open Terminal
  • Type sudo -H nautilus
  • Ignore the messages, go to the opened Nautilus
  • Open the Desktop folder
  • Find the icon for your "untrusted program"
  • Right click the icon
  • Select Properties
  • Click the Permissions tab
  • Check the box by Allow executing file as program
  • Reboot
Zanna
  • 72,312