Check permissions along a path
permission denied although file permissions are correct | 403 forbidden caused by permissions | which folder blocks access | show permissions of all parent directories | namei | troubleshootingnamei -l /var/www/vhosts/example.com/httpdocs/index.phpSplits the path and shows permissions, owner and group for every level starting at /. Accessing a file requires the x permission on every parent directory. If it is missing somewhere, this shows immediately where.
Note: namei is part of util-linux and always available on Debian and Ubuntu.
Also searched as
- permission denied although file permissions are correct
- 403 forbidden caused by permissions
- which folder blocks access
- show permissions of all parent directories