The 7 gives the owner read, write and execute (4+2+1). Each 5 gives group and others read and execute (4+1), without write. On files it is the mode of programs and scripts; on directories it lets everyone list and enter, but only the owner create and delete items. ls -l shows rwxr-xr-x.