nix icon indicating copy to clipboard operation
nix copied to clipboard

Allow installing multi-user as root on macOS and Linux

Open grahamc opened this issue 3 years ago • 2 comments

This may work fine on a mac, but I don't have one for testing. I haven't tested this exact change on Linux yet, but it operates on the idea that you can "just" set EUID=65535 as root and the installer works fine. Going to test this shortly.

Closes #6801, cc @cole-h.

grahamc avatar Aug 08 '22 20:08 grahamc

Tested the resulting installer, I think this is good to go.

grahamc avatar Aug 10 '22 16:08 grahamc

You need a MacBook Air to test it? I. An fedex you one to try I have a few lying around I been hoarding them and raid ing costxo

biscuitPIMP avatar Aug 10 '22 23:08 biscuitPIMP

It would be great to test this on macOS as root, but I'll merge it since it shouldn't break existing usage.

edolstra avatar Aug 12 '22 08:08 edolstra

FYI: it was tested on an x86 macOS VM (not aarch64 or on real hardware, but hopefully a close enough approximation?): https://github.com/NixOS/nix/pull/6882#discussion_r941603130. So, ideally, everything should be fine.

cole-h avatar Aug 12 '22 21:08 cole-h

I tested this on an aarch64 mac through MDM and it worked great!

grahamc avatar Aug 14 '22 13:08 grahamc