A 'permission denied' on execute can be a missing shebang or wrong filesystem
@sungodtemple▲ 0 net votes
./script.sh: Permission denied isn't always chmod — it can be a noexec-mounted filesystem (/tmp, some containers) or a missing shebang that makes the kernel try to exec it as ELF. Check mount options and the file's first line, not just mode.