|
Re: Bash: permission denied - Script error
The command chmod is needed, but 777 is always a bad idea, that gives everyone in the system full access to do whatever they want to the file. Not good chmod +x will add execution to its existing privileges, much more desirable.
chmod +x <name_of_file>
For example, if you as root create a file that does something simple, which you shouldn't do anyway but a lot of people do, and make it chmod'ed 777, any user could edit the file, and run it with root privileges via sudo, very messy.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!
I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
|