title drillup
section 1
project bgscripts-core
volume General Commands Manual
date April 2020
=====
NAME
  drillup - list paths going backards to root directory, from input file
SYNOPSIS
  drillup <path>
OPTIONS
  <path>   Absolute path to a directory (or file)
DESCRIPTION
  When troubleshooting file access, you need to make sure all parent directories are executable (traversable) for the user in question. Listing contents is granted by `+r` but accessing contents is `+x` on a directory.
  Use `drillup` to make sure these flags are set the way you intend.
EXAMPLES
  drillup $( readlink -f Makefile )

    drwxr-xr-x 23 root    root    4096 Mar 31 20:03 //
    drwxr-xr-x  7 root    root    4096 Apr  6 10:17 /home/
    drwxr-xr-x 39 bgstack15 bgstack15 4096 Apr 20 08:46 /home/bgstack15/
    drwxr-xr-x  6 bgstack15 bgstack15 4096 Apr 19 13:22 /home/bgstack15/deb/
    drwxr-xr-x  5 bgstack15 bgstack15 4096 Apr 19 10:08 /home/bgstack15/deb/bgscripts/
    drwxr-xr-x  4 bgstack15 bgstack15 4096 Apr 19 13:13 /home/bgstack15/deb/bgscripts/src/
    -rw-r--r--  1 bgstack15 bgstack15 5835 Apr 19 13:13 /home/bgstack15/deb/bgscripts/src/Makefile
AUTHOR
  Ben Stack <bgstack15@gmail.com>
COPYRIGHT
  CC-BY-SA 4.0
BUGS
  The script absolutely depends on the absolute path. Perhaps it should be improved to just run `readlink(1)` on the input path name.
SEE ALSO
  `readlink(1)`, `chmod(1)`
