Is there a tool in Linux that will take a path such as
/var/log/httpd/error_log, and print the permission for each branch of the path, i.e.:
/var: root:root, 0755 /var/log: root:root, 0755 /var/log/httpd: www-data:root, 0700 /var/log/httpd/error_log: www-data:www-data, 0644
Such a tool would make permission troubleshooting much easier, especially with exceptionally long paths like on file servers and such.