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.
This commit is contained in:
Eelco Dolstra 2019-10-09 19:55:05 +02:00
parent c9159f86cc
commit d7bae5680f
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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);