Thank you for quick response. I already verified permissions, paths and shebang are correct too.
Concerning environmental variables, should I look for something particular?
I don't know how to verify AppArmor/SELinux, I never changed anything concerning that.
Could firewall influence execution of a command by the script? I thougth it could block the script itself, but not a particular operation in that script.