Y
Y
Yu Yu2015-03-14 23:22:48
linux
Yu Yu, 2015-03-14 23:22:48

Permission denied when running sh script, what's wrong?

I do this post
habrahabr.ru/post/210592
Unpacked to /home/pi/JAVAME/
when I try to run the script sudo ~/JavaME/bin/usertest.sh writes ./run.sh Permission denied
did chmod +x for run. I stumbled for another script run from run

Do I need to do all the chmod +x files or did I not understand something?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
3
3vi1_0n3, 2015-03-15
@xztau

Either chmod +x filename, or "sh script.sh"
You can't run a file for execution without the right to execute.

A
Alexander, 2015-03-15
@Kott42

"sh ~/JavaME/bin/usertest.sh"
In this case, "~/JavaME/bin/usertest.sh" will act as an argument and the rights to execute it can be omitted.

Y
Yu Yu, 2015-03-15
@xztau

In general, I went through all chmod + x. It seems to have started

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question