aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-10-09 19:55:05 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-10-09 23:35:02 +0200
commitd7bae5680fc26303acb9a9ee1a202f537841a624 (patch)
tree59da9247199fd4585a88470ab9e9bd39cf3a31c4 /src
parentc9159f86cc9a2fc07e2ab1217c2d8a8824123df4 (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.
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 2bc04da46..fbf5dc35c 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);