Re: Can I set the access level to the files with specified suffix when creating?



To the best of my knowledge, it's mandatory to explicitly declare a
script as executable using chmod, and there are security reasons for
such.
Eeeer ... why security reasons? I cannot see any.

And _that_ is precisely the reason why.

WTF? Firstly, if this script is not executable, I can run it using "sh
script_name". Secondly, the script cannot do more than I can and if run
any program, it has the same effect with the difference that in script
files, I can (usually) watch the source. Thirdly, what is more secure on
having the script non-executable if I (or some malicious code) can do
"chmod u+x script && ./script"?

Zdenek
.



Relevant Pages