From 3f20895c4db60362590ccabb285c20828b472f7a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 13 Sep 2017 11:38:01 +0200 Subject: ch: Output namei -l when permissions are incorrect Signed-off-by: Florian Pritz --- ch | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-24-g4f1b