namei

Show recursive file permissions of all directories, up to the specified file or directory.

namei examples

namei -l /var/log/auth.log

Show the directory and file permissions recursively up to the specified file