···177 was probably single user):
178179 ```ShellSession
180- $ sudo chown -R 0.0 /nix
181 ```
1821831. Set up the `/etc/NIXOS` and `/etc/NIXOS_LUSTRATE` files:
···177 was probably single user):
178179 ```ShellSession
180+ $ sudo chown -R 0:0 /nix
181 ```
1821831. Set up the `/etc/NIXOS` and `/etc/NIXOS_LUSTRATE` files:
+2-2
nixos/modules/security/wrappers/default.nix
···9899 # Prevent races
100 chmod 0000 "$wrapperDir/${program}"
101- chown ${owner}.${group} "$wrapperDir/${program}"
102103 # Set desired capabilities on the file plus cap_setpcap so
104 # the wrapper program can elevate the capabilities set on
···126127 # Prevent races
128 chmod 0000 "$wrapperDir/${program}"
129- chown ${owner}.${group} "$wrapperDir/${program}"
130131 chmod "u${if setuid then "+" else "-"}s,g${if setgid then "+" else "-"}s,${permissions}" "$wrapperDir/${program}"
132 '';
···9899 # Prevent races
100 chmod 0000 "$wrapperDir/${program}"
101+ chown ${owner}:${group} "$wrapperDir/${program}"
102103 # Set desired capabilities on the file plus cap_setpcap so
104 # the wrapper program can elevate the capabilities set on
···126127 # Prevent races
128 chmod 0000 "$wrapperDir/${program}"
129+ chown ${owner}:${group} "$wrapperDir/${program}"
130131 chmod "u${if setuid then "+" else "-"}s,g${if setgid then "+" else "-"}s,${permissions}" "$wrapperDir/${program}"
132 '';