Quote:
Originally Posted by halfpower
Thanks AB. That seemed to do the trick. Why though, do I still have to type sudo? Is there any particular reason to put the script in the /usr/local/bin/ directory?
|
The /usr/local/bin directory is the common location for scripts and program that you add to the system yourself. The fact that you still have to use sudo before the command is because you insisted it must be run by non-root users and the commands in the script need to be run with root privileges. The "sudo /usr/local/bin/start_wireless.sh" matches with a line in the "/etc/sudoers" file and thus the script will execute with root privileges. If you would run it yourself as "/usr/local/bin/start_wireless.sh" then the programs would execute with
your privileges which is not sufficient.
Eric