So I have a little Linux problem, geez that will teach me to spend so many years on Windows. Anyway I did a little java app, wrapped nicely with the Java Service Wrapper script, but when I run that script:
sh ./wrapper.sh console
I get permission denied right away. The permission denied message is like that:
eval: 1: /home/user1/MyApp/bin/wrapper: Permission denied
My little wrapper.sh lives in the MyApp/bin folder. The directory MyApp/bin/wrapper contains 2 files:
As a test I ran the following chmod command:
chmod a=rwx MyApp -R
I verified that everything was rwx, even in the sub-folders and tried to run the script again, with the exact same result... permission denied.
Anyone has any idea of what I could try next to make that baby run?
Thanks, Lancelot
The file system hosting your script might be mounted with the noexec
flag. Check your /etc/fstab entry for that file system and if there's a noexec
there try removing it then remounting that file system via mount /path/to/mountpoint -o remount
On second thought, check the output of the mount
command for noexec instances instead of /etc/fstab (the file system might have been mounted dynamically.)