Maybe this is for dummies, but i'm not sure. My directory has the permissions:
drwx------ 2 root root 4096 oct 16 11:39 scripts
But the script have the permissions:
-rwxrwxrwx 1 user user 39 oct 16 17:32 script.sh
But when i try to execute the script i get
bash: script.sh: Permission denied
I don't understand what is happening, because user can't execute the script (the owner and group were changed manualy) and obviusly root can.