Files
nixpkgs/nixos/tests
Tom Butler 60fe0dcfbb 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.
2024-07-11 20:09:20 +02:00
..
2024-06-29 19:09:05 +02:00
2024-05-10 18:55:54 -03:00
2024-06-11 15:47:09 +02:00
2024-07-07 11:16:23 +02:00
2024-04-02 19:16:45 +02:00
2024-07-02 02:36:42 +02:00
2024-06-25 14:08:15 +02:00
2024-07-05 17:07:02 +03:00
2024-05-25 10:38:39 -04:00
2024-05-07 01:56:25 +02:00
2024-04-18 21:04:28 +02:00
2024-06-16 14:11:33 +03:00
2024-05-18 02:15:33 +08:00
2024-05-17 21:24:05 +02:00
2024-06-30 13:26:51 +10:00
2024-04-21 22:26:12 +02:00
2024-06-16 14:11:33 +03:00
2024-04-26 17:19:33 +02:00
2024-04-01 12:55:29 +02:00
2024-04-16 10:42:02 +02:00
2024-05-13 12:14:44 +02:00
2024-05-30 07:28:44 +00:00
2024-07-05 13:12:35 +02:00
2024-05-22 08:37:48 +03:00
2024-03-24 18:02:25 -04:00
2024-06-18 08:47:29 -03:00
2024-07-02 02:36:42 +02:00
2024-07-08 13:14:09 +02:00
2024-03-25 18:49:46 +01:00
2024-03-16 15:12:15 -04:00
2024-04-22 10:19:42 +08:00
2024-06-17 09:15:54 +02:00
2024-05-01 09:47:06 -04:00
2024-05-30 01:36:58 +02:00
2024-07-06 20:05:07 +02:00
2024-05-24 09:17:47 -05:00
2024-03-11 09:51:36 +08:00
2024-05-30 19:11:27 +03:00
2024-03-28 09:55:10 -07:00
2024-06-16 14:11:33 +03:00
2024-03-19 21:54:05 +01:00
2024-04-12 12:30:40 +02:00
2024-07-01 18:56:40 +02:00
2024-03-24 12:27:20 +01:00
2024-04-03 00:53:24 +05:30
2024-04-07 20:29:21 +02:00
2024-06-19 13:35:23 +00:00
2024-06-04 16:46:19 +05:30
2024-06-16 14:11:33 +03:00
2024-05-05 16:37:18 -04:00
2024-05-29 03:40:48 +03:00
2024-06-16 14:11:33 +03:00
2024-04-11 10:47:07 +02:00
2024-06-11 18:57:09 +02:00
2024-06-24 19:01:16 -03:00
2024-06-16 14:11:33 +03:00
2024-03-16 17:12:16 +01:00
2024-07-04 17:11:18 -07:00
2024-03-30 20:07:35 -05:00
2024-07-11 20:08:51 +02:00
2024-07-04 21:04:27 +03:00
2024-06-21 15:54:54 +02:00
2024-06-21 15:54:54 +02:00
2024-06-16 14:11:33 +03:00
2024-05-13 16:04:55 +02:00
2024-03-25 19:01:56 +01:00
2024-03-27 06:35:55 +00:00
2024-07-11 20:08:51 +02:00
2024-04-01 04:55:15 +04:00
2024-06-18 11:07:06 +03:00
2024-05-13 22:12:17 +02:00