-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow installing multi-user as root on macOS and Linux #6882
Allow installing multi-user as root on macOS and Linux #6882
Conversation
sudo "$@" | ||
|
||
if is_root; then | ||
env "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note this uses env
because some _sudo callsites pass environment variables to the program being executed.
e4a67b9
to
7bb1e91
Compare
Tested the resulting installer, I think this is good to go. |
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 |
It would be great to test this on macOS as root, but I'll merge it since it shouldn't break existing usage. |
FYI: it was tested on an x86 macOS VM (not aarch64 or on real hardware, but hopefully a close enough approximation?): #6882 (comment). So, ideally, everything should be fine. |
I tested this on an aarch64 mac through MDM and it worked great! |
…r-as-root Allow installing multi-user as root on macOS and Linux
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.