Skip to main content

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:

code:
chmod +x myfile
then when try run have, work. asking bash run did, avoided having make executable in order run.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Permission


Ubuntu

Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support