From: Jameson Graef Rollins Date: Thu, 19 Feb 2009 10:08:57 +0000 (-0500) Subject: fix permissions and ownership on authentication directories. X-Git-Tag: monkeysphere_0.23~41 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=481d4d4308bdd5c352d877211dab0ef1d13d7a56;p=monkeysphere.git fix permissions and ownership on authentication directories. --- 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?