if ( glob service claim-dir
& glob service-user root
- & grep calling-user-shell /etc/shells
+ & ( grep calling-user-shell /etc/shells
+ | glob calling-user-shell /dev/token-shells/userv
+ )
)
no-suppress-args
null-fd 0
1) filsys=$1 ;; \
*) echo >&2 \"usage: $quis FILSYS\"; exit 1 ;; \
esac; \
- foundp=nil; \
+ foundp=nil; mode=700; \
while read fs dir opts; do \
case \"$fs\" in \
\\#* | \"\") continue ;; \
;; \
esac \
;; \
+ mode=*) \
+ mode=$arg \
+ ;; \
mount=*) \
if ! mountpoint -q \"$dir\"; then $arg \"$dir\"; fi \
;; \
set _ $USERV_GROUP; group=$2; \
cd \"$dir\"; \
if [ ! -d \"$user\" ]; then \
- mkdir -m700 \"$user\"; \
+ mkdir -m$mode \"$user\"; \
chown \"$user:$group\" \"$user\"; \
fi; \
echo \"$dir/$USERV_USER\" \