diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-19 05:08:57 -0500 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-02-19 05:08:57 -0500 |
commit | 481d4d4308bdd5c352d877211dab0ef1d13d7a56 (patch) | |
tree | 8d53caf0536e6e13f2d0a4429619d2cf05973675 /src | |
parent | 39996655a57ca3167e733d0a0457941ae4060270 (diff) |
fix permissions and ownership on authentication directories.
Diffstat (limited to 'src')
-rw-r--r-- | src/share/ma/setup | 6 |
1 files changed, 5 insertions, 1 deletions
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? |