summaryrefslogtreecommitdiff
path: root/src/share/ma
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-02-19 05:14:50 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-02-19 05:14:50 -0500
commit930822a6e672c28c06f78e9d8250cda07248f129 (patch)
treec924f94b1dbcd93ea2d6f05dc794efcb13dd4d1a /src/share/ma
parent481d4d4308bdd5c352d877211dab0ef1d13d7a56 (diff)
more fix permissions and ownership on authentication directories.
Diffstat (limited to 'src/share/ma')
-rw-r--r--src/share/ma/setup9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/share/ma/setup b/src/share/ma/setup
index 1685e5d..8929871 100644
--- a/src/share/ma/setup
+++ b/src/share/ma/setup
@@ -15,15 +15,16 @@ setup() {
# make all needed directories
log debug "make authentication directory structure..."
mkdir -p "${MADATADIR}"
- chmod 750 "${MADATADIR}"
+ chmod 0750 "${MADATADIR}"
chgrp "$MONKEYSPHERE_USER" "${MADATADIR}"
mkdir -p "${MATMPDIR}"
- chmod 750 "${MATMPDIR}"
+ chmod 0750 "${MATMPDIR}"
chgrp "$MONKEYSPHERE_USER" "${MATMPDIR}"
mkdir -p "${GNUPGHOME_CORE}"
- chmod 700 "${GNUPGHOME_CORE}"
+ chmod 0700 "${GNUPGHOME_CORE}"
mkdir -p "${GNUPGHOME_SPHERE}"
- chmod 700 "${GNUPGHOME_SPHERE}"
+ chmod 0700 "${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?