I'm sifting through some incorrect permission issues and discovered the namei command for Linux. Homebrew doesn't currently have a Mac port.
namei - follow a pathname until a terminal point is found
Is there a command or series of commands that can be used to accomplish the same thing on OS X?