If a file is to be accessible, then a program running as a particularly user u must possess the x permission to each level of directory from the root directory (/) to the directory containing the file.
Note that the user u may get the x permission of each level of directory via different ownerships.