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