diff options
| author | Tom Butler <tom@r.je> | 2024-07-09 22:09:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-09 23:09:09 +0200 |
| commit | e7e8ad1e354cc3b3bdedeabd145bda0983beb5f2 (patch) | |
| tree | db7b4434d8052ccdd1c692bf200b18c66cdc05d9 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 0a19ea8fb5941a9fe5baab6914d0cb4b56713cd1 (diff) | |
nixos: Set home directory parent tree permissions to 0755
When the user's home directory is created using `createHome` e.g.
```
users.users.alice = {
home = "/users/alice";
createHome = true;
};
```
The `/users` directory was created with the same permissions as `/users/alice`, `0700` by default.
The parent directory `/users` permissions results in `createHome` creating a home directory that is inaccessible to the user:
```
$ su alice
$ cd /user/alice
cd: permission denied: /users/alice
```
The underlying cause is `make_path($u->{home}, { mode => oct($u->{homeMode}) })` which sets, in the example above`, `/users` to `0700`. Instead it should be `0755` like other system directories `/var`, `/dev`, etc.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
