I create a bash script in the user directory that, when executed, for example, displays the text "Hello world". At the same time, I want to be able to execute it only myself (the owner of the file) and the accounts from my group, and all the rest could just read. Accordingly, I set the rights through chmod, I log in as a user not from my group, go to the directory with the file, run it through sh and ... it suddenly executes and displays "Hello world" instead of "Access denied". But how is this possible, I forbade others to perform? What it is? What does it mean?
[user@localhost ~]$ ls -la *.sh -rwxr-xr-- 1 user users 0 Feb 19 01:21 file.sh [user@localhost ~]$ sh file.sh Hello World [user@localhost ~]$ groups users wheel [user@localhost ~]$ su - testu Password: [testu@localhost ~]$ groups testu [testu@localhost ~]$ cd ../user [testu@localhost user]$ sh file1.txt Hello World```