about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);