fix permissions and ownership on authentication directories.
authorJameson Graef Rollins <jrollins@finestructure.net>
Thu, 19 Feb 2009 10:08:57 +0000 (05:08 -0500)
committerJameson Graef Rollins <jrollins@finestructure.net>
Thu, 19 Feb 2009 10:08:57 +0000 (05:08 -0500)
src/share/ma/setup

index 54ab5be186851c2194b7a38c1965860e59337dff..1685e5da797613a0151c2e5f8729ef071ce1a3e4 100644 (file)
 
 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?