I want to grant execute permission for a script, but not read permission since I do not want user to read the content for the script. But it seems not working, I post what I am doing and seeking for advice,
sub-directory demo is owned by root user and root group,
Case 1, make execute+read permission, works
chmod 775 /home/yhd/demo/text
Then user yhd can execute text command without any issues
Case 2, make execute permission only, not working
chmod 771 /home/yhd/demo/text
Then user yhn cannot execute text command, and error message is permission denied