summaryrefslogtreecommitdiff
path: root/src/share
diff options
context:
space:
mode:
Diffstat (limited to 'src/share')
-rw-r--r--src/share/ma/setup6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/share/ma/setup b/src/share/ma/setup
index 54ab5be..1685e5d 100644
--- a/src/share/ma/setup
+++ b/src/share/ma/setup
@@ -13,13 +13,17 @@
setup() {
# make all needed directories
+ log debug "make authentication directory structure..."
mkdir -p "${MADATADIR}"
+ chmod 750 "${MADATADIR}"
+ chgrp "$MONKEYSPHERE_USER" "${MADATADIR}"
mkdir -p "${MATMPDIR}"
+ chmod 750 "${MATMPDIR}"
+ chgrp "$MONKEYSPHERE_USER" "${MATMPDIR}"
mkdir -p "${GNUPGHOME_CORE}"
chmod 700 "${GNUPGHOME_CORE}"
mkdir -p "${GNUPGHOME_SPHERE}"
chmod 700 "${GNUPGHOME_SPHERE}"
- mkdir -p "${SYSDATADIR}"/authorized_keys
# deliberately replace the config files via truncation
# FIXME: should we be dumping to tmp files and then moving atomically?