mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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