Do you know what linux this is, and how they installed it? I see a number of threads out there mentioning this when people have installed Nix with their system package manager. Looks like quite a few threads are about Alpine.
The Nix manual discusses the mechanism they’re probably using: Multi-User Mode - Nix Reference Manual
If this sounds right, your user or users likely need to be added to the nix-users group.