From 481d4d4308bdd5c352d877211dab0ef1d13d7a56 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Thu, 19 Feb 2009 05:08:57 -0500 Subject: fix permissions and ownership on authentication directories. --- src/share/ma/setup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/share') 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? -- cgit v1.2.3