There's a command, I think it comes with apache, or is somehow related to it, that checks permissions, all the way down. So if I have /home/foo/bar/baz it will tell me what the permissions are for baz, bar, foo, and home. Does anyone know what this command is or another way of doing this? The command basically starts at the argument, and works it's way up to / letting you know what the permissions are along the way so you can see if you have a permission problem.
How do I recursively check permissions in reverse?
command line;shell;permissions
The utility you may be thinking of is the namei command.  According to the manual page:Namei  uses  its  arguments  as   pathnames to any type of Unix file  (symlinks, files, directories, and so  forth).  Namei then follows each  pathname until a terminal point is  found (a file, directory, char device,  etc).  If it finds a symbolic link, we  show the link, and start following it,  indenting the output to show the  context.The output you desire can be received as follows:$ namei -l /usr/src/linux-headers-2.6.35-22/include/f: /usr/src/linux-headers-2.6.35-22/include/drwxr-xr-x root root /drwxr-xr-x root root usrdrwxrwsr-x root src  srcdrwxr-xr-x root root linux-headers-2.6.35-22drwxr-xr-x root root includeThe namei command is part of the linux-util-ng software package.  See the  manual page for more details.