Hi,
That indeed is the sudoers file, but don't just edit it like that. You have to use: Code:
sudo visudo Code:
id Kind regards, Eric |
Also, what would be very useful to you is to look at the sudoers man page:
Code:
man sudoers Kind regards, Eric |
Quote:
"id" returns: Code:
andrew@mylinuxbox:~$ id |
Quote:
Code:
sudo su Code:
sudo yourscriptname Eric |
Thanks Eric!
That did the trick. I made a GNOME menu entry and used "gksudo /home/andrew/Desktop/airodump-ng_auto" (airodump-ng_auto was my script name) and it worked like a charm. I attached a few screenshots of the script in action! |
Hello Andrew,
Glad you got it running as you wanted. If you consider your thread as solved please mark it as such using the Thread Tools. Kind regards, Eric |
Quote:
Here is the script that I used for future reference of this thread. Code:
#! /bin/bash |
&& vs ||
Also note that you join commands with && if you want to stop the sequence if any of the commands fail. "echo 1 && echo 2" means echo 1 and if that statement succeeds, then run the command "echo 2" and on and on any number of commands. On the other hand "echo 1 || echo 2" means run "echo 1" and then only if that fails, run "echo 2"
And if you really don't care what the return status is or the return status is undefined (unlikely on Linux but very prevalent in Windows) then just use the semicolon (";"). |
it looks great to me i am curious to know further.
|
All times are GMT -5. The time now is 08:19 PM. |