Results 1 to 1 of 1
I have a script that needs to be ran as root.
I have seen in other files when you right click and go to the properties, there is a "command" ...
- 07-26-2010 #1Just Joined!
- Join Date
- Jul 2010
- Posts
- 11
Shell Script File Properties and Running questions
I have a script that needs to be ran as root.
I have seen in other files when you right click and go to the properties, there is a "command" line in the box where you can enter sudo before the name of the file so that it will run as root.
when I go to the properties for the file I created this is greyed out.
How do I enable this, or is there a line of code I can enter into my script at the start to make the entire file run as root
Actually, this turned into a 2 part question
when I double click the shell file I am given the option to run in terminal, display, run, cancel
why doesn't terminal actually open when I select run in terminal?
some other way of running this program so that the user sees and is asked to input what the program is built for?
I just dont want to have to open terminal and type
sudo sh /media/drive/test.sh every time, not to mention it is inconvieniant for the other people who will be using this script and do not already know where exactly it is located
Thanks for all the help I have gotten here


Reply With Quote