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

index 1685e5da797613a0151c2e5f8729ef071ce1a3e4..89298711e01ea77853924734ff8da2ca7be9a8ea 100644 (file)
@@ -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?