From 930822a6e672c28c06f78e9d8250cda07248f129 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Thu, 19 Feb 2009 05:14:50 -0500 Subject: [PATCH] more fix permissions and ownership on authentication directories. --- src/share/ma/setup | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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? -- 2.26.2