let's say there are to users A and B, belong to different group. and bot of them are not root
first, as user A.
1) touch a.txt; echo "hello word" > a.txt
2)chmod 600
3) touch b
4) echo "cat a.txt" > b
5) chmod 4755 b
and then switch to user B, my assumption is user B can successfully run the binary and get the greeting "hello word", but when I actually run the binary as User B, I got "permission denied". so why?