This question already has an answer here:

I have created the below script.

sudo echo "Hi, I'm root"

It is inside a file called script.sh

I have checked the permission to run as a program inside properties. When I double click, nothings happens. The only thing that happens is that the text editor opens. How can I see what is going wrong?

marked as duplicate by pomsky, Kulfy, dessert, Community Mar 17 at 14:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Thank you, but that is not what i wanted, I just wanted to make a script that runs something, it works now by enabling nautilus script run :) – user825380 Mar 17 at 14:58
  • OK, comment removed since that is not what you are looking for then. – Terrance Mar 17 at 15:01