extra-trusted-users being ignored #1183

Open
opened 2026-04-15 12:47:28 +00:00 by ma27 · 2 comments
Member

Describe the bug

Granting a user privileged access to the Lix daemon doesn't work via extra-trusted-users in nix.conf, but trusted-users only.

Steps To Reproduce

  1. Set allowed-users to root in nix.conf
  2. Create an unprivileged user
  3. Add unprivileged user to extra-trusted-users in nix.conf
  4. Open a shell as unprivileged user, run nix store ping. Access to the daemon is rejected
    5/. Adding the unprivileged user to trusted-users instead of extra-trusted-users gives access

Expected behavior

Expected the unprivileged user to have access in step 4.

nix --version output

Observed on Lix version 2.95.1 & nix (Lix, like Nix) 2.96.0-devpre20260314_c452341.

Additional context

none.

## Describe the bug Granting a user privileged access to the Lix daemon doesn't work via `extra-trusted-users` in `nix.conf`, but `trusted-users` only. ## Steps To Reproduce 1. Set `allowed-users` to `root` in `nix.conf` 2. Create an unprivileged user 3. Add unprivileged user to `extra-trusted-users` in `nix.conf` 4. Open a shell as unprivileged user, run `nix store ping`. Access to the daemon is rejected 5/. Adding the unprivileged user to `trusted-users` instead of `extra-trusted-users` gives access ## Expected behavior Expected the unprivileged user to have access in step 4. ## `nix --version` output Observed on Lix version 2.95.1 & `nix (Lix, like Nix) 2.96.0-devpre20260314_c452341`. ## Additional context none.
Owner

what does the file actually look like? order matters! >,<

what does the file actually look like? order matters! >,<
Author
Member

To copy the shell session I saved yesterday:

[root@cache01:~]# cat /etc/nix/nix.conf|grep hydra
trusted-users = root root hydra hydra-www @wheel
extra-trusted-users = hydra hydra-queue-runner hydra-www

[root@cache01:~]# sudo -iu hydra-www nix store ping
Store URL: daemon
Version: 2.95.1
Trusted: 1

[root@cache01:~]# sudo -iu hydra-queue-runner nix store ping
Store URL: daemon
error: cannot open connection to remote store 'daemon': error: read failed: Connection reset by peer
To copy the shell session I saved yesterday: [root@cache01:~]# cat /etc/nix/nix.conf|grep hydra trusted-users = root root hydra hydra-www @wheel extra-trusted-users = hydra hydra-queue-runner hydra-www [root@cache01:~]# sudo -iu hydra-www nix store ping Store URL: daemon Version: 2.95.1 Trusted: 1 [root@cache01:~]# sudo -iu hydra-queue-runner nix store ping Store URL: daemon error: cannot open connection to remote store 'daemon': error: read failed: Connection reset by peer
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#1183
No description provided.