Thread: Permission
sir,
suppose have created file named "myfile" following content:
echo "hello world"
when type "./myfile" @ prompt, gives permission denied error.
when use "bash myfile" execute, there no permission denied error. why so?
difference between these 2 ways of executing script?
the reason because didn't make file executable. that, issue:
then when try run have, work. asking bash run did, avoided having make executable in order run.code:chmod +x myfile
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Permission
Ubuntu
Comments
Post a Comment