On directories' permissions: x versus X

So the task says to create a group group01, in which members are user01, user02 and user03. And then set ACLs for the group to read and write to a directory /dir01, but user01 should only be able to read the directory.
All is clear about making the directory, including users into group01 as their secondary group, setting ACLs via setfacl as per requirements but... I was surprised to see in the solution that group was given rwX over a directory while user01 was given r-x. Why wouldn't user01 have r-X over the directory and would it make such a difference ifuser01 had r-X? Why/when to prefer X over x for directories?
All is clear about making the directory, including users into group01 as their secondary group, setting ACLs via setfacl as per requirements but... I was surprised to see in the solution that group was given rwX over a directory while user01 was given r-x. Why wouldn't user01 have r-X over the directory and would it make such a difference ifuser01 had r-X? Why/when to prefer X over x for directories?
Comments