It turns out that `claim-dir' is also useful for allocating pieces of
filesystem for things like public Git repositories, but restrictive
initial permissions make this annoying.
### no entry matches, access is forbidden. Without this option, access
### is open to all.
###
### no entry matches, access is forbidden. Without this option, access
### is open to all.
###
+### mode=MODE
+### Permissions for the new directory. The default is 700.
+###
### mount=SCRIPT
### If DIR is not a mount point already, run SCRIPT DIR.
### mount=SCRIPT
### If DIR is not a mount point already, run SCRIPT DIR.
1) filsys=$1 ;; \
*) echo >&2 \"usage: $quis FILSYS\"; exit 1 ;; \
esac; \
1) filsys=$1 ;; \
*) echo >&2 \"usage: $quis FILSYS\"; exit 1 ;; \
esac; \
+ foundp=nil; mode=700; \
while read fs dir opts; do \
case \"$fs\" in \
\\#* | \"\") continue ;; \
while read fs dir opts; do \
case \"$fs\" in \
\\#* | \"\") continue ;; \
+ mode=*) \
+ mode=$arg \
+ ;; \
mount=*) \
if ! mountpoint -q \"$dir\"; then $arg \"$dir\"; fi \
;; \
mount=*) \
if ! mountpoint -q \"$dir\"; then $arg \"$dir\"; fi \
;; \
set _ $USERV_GROUP; group=$2; \
cd \"$dir\"; \
if [ ! -d \"$user\" ]; then \
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\" \
chown \"$user:$group\" \"$user\"; \
fi; \
echo \"$dir/$USERV_USER\" \