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:
parent
c9159f86cc
commit
d7bae5680f
|
@ -1441,7 +1441,7 @@ void LocalStore::createUser(const std::string & userName, uid_t userId)
|
||||||
fmt("%s/gcroots/per-user/%s", stateDir, userName)
|
fmt("%s/gcroots/per-user/%s", stateDir, userName)
|
||||||
}) {
|
}) {
|
||||||
createDirs(dir);
|
createDirs(dir);
|
||||||
if (chmod(dir.c_str(), 0700) == -1)
|
if (chmod(dir.c_str(), 0755) == -1)
|
||||||
throw SysError("changing permissions of directory '%s'", dir);
|
throw SysError("changing permissions of directory '%s'", dir);
|
||||||
if (chown(dir.c_str(), userId, -1) == -1)
|
if (chown(dir.c_str(), userId, -1) == -1)
|
||||||
throw SysError("changing owner of directory '%s'", dir);
|
throw SysError("changing owner of directory '%s'", dir);
|
||||||
|
|
Loading…
Reference in a new issue