summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-09-13 11:38:01 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-09-13 11:38:01 +0200
commit3f20895c4db60362590ccabb285c20828b472f7a (patch)
tree892acc0ef513b5eb3003b13df14e9e597d3aa77c
parentea90a58189a1461f3eb46816b97fd89e57991f9b (diff)
downloadbin-3f20895c4db60362590ccabb285c20828b472f7a.tar.gz
bin-3f20895c4db60362590ccabb285c20828b472f7a.tar.xz
ch: Output namei -l when permissions are incorrect
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xch2
1 files changed, 2 insertions, 0 deletions
diff --git a/ch b/ch
index cfd8939..b88ac44 100755
--- a/ch
+++ b/ch
@@ -41,6 +41,8 @@ umask 022
if [[ ! -d "$CHROOTS" ]]; then
echo "chroot base directory '$CHROOTS' does not exist or is not readable"
+ echo "directory permissions are:"
+ namei -l "$CHROOTS"
return 1
fi