about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-10-09T17·55+0200
committerEelco Dolstra <edolstra@gmail.com>2019-10-09T21·58+0200
commit7c4589854b3aed7ee1cc5c6157e65cd0bc276848 (patch)
tree155d25cb20e8763afac3a99c07eb2bd6d0b43dba /src
parent1c10f739eb38492fd48d69e914c6a64278a02dfa (diff)
Go back to 755 permission on per-user directories
700 is pointless since the store is world-readable anyway. And
per-user/root/channels must be world-readable.

(cherry picked from commit d7bae5680fc26303acb9a9ee1a202f537841a624)
Diffstat (limited to 'src')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 4619650dd7a3..7b7d6cfa2545 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -1441,7 +1441,7 @@ void LocalStore::createUser(const std::string & userName, uid_t userId)
         fmt("%s/gcroots/per-user/%s", stateDir, userName)
     }) {
         createDirs(dir);
-        if (chmod(dir.c_str(), 0700) == -1)
+        if (chmod(dir.c_str(), 0755) == -1)
             throw SysError("changing permissions of directory '%s'", dir);
         if (chown(dir.c_str(), userId, -1) == -1)
             throw SysError("changing owner of directory '%s'", dir);