Posted on 11-02-2018 10:04 AM
Is it possible to do auto-login as root in High Sierra and/or Mojave - or that option is completely no more available?
Integrity protection is off, I am able to login as root. But in System Preferences - Users - Login Options the "Super Administrator" name is not available under Automatic login list.
Maybe some command line magic?
Thanks!
Solved! Go to Solution.
Posted on 11-05-2018 07:16 AM
The following use to work - I think it's no longer a feature as of 10.13 (or 10.13.3 or 10.13.4 NOT POSITIVE) You must manually login to Root. If I am wrong, please correct me and let us know how you did it!
after enabling root with directory utility and then running these commands from root terminal... use to work..
sudo defaults write /Library/Preferences/com.apple.loginwindow autoLoginUser root
sudo defaults write /Library/Preferences/com.apple.loginwindow autoLoginUserUID 0
sudo shutdown -r now
Posted on 11-05-2018 07:16 AM
The following use to work - I think it's no longer a feature as of 10.13 (or 10.13.3 or 10.13.4 NOT POSITIVE) You must manually login to Root. If I am wrong, please correct me and let us know how you did it!
after enabling root with directory utility and then running these commands from root terminal... use to work..
sudo defaults write /Library/Preferences/com.apple.loginwindow autoLoginUser root
sudo defaults write /Library/Preferences/com.apple.loginwindow autoLoginUserUID 0
sudo shutdown -r now
Posted on 11-05-2018 09:34 AM
@Hugonaut Thank you Hugo - it works! Appreciate your help!
Posted on 11-05-2018 10:11 AM
Great to hear, glad to help. I guess with integrity off it allows it, didnt work with integrity on (on mojave) for me!
Posted on 08-01-2019 09:15 AM
Posted on 08-01-2019 09:28 AM
I did not try it with Mojave yet. Maybe will try in 2-3 weeks
Posted on 08-01-2019 10:36 AM
@chrisdaggett I have a workflow for AutoLogin not sure if it will work for root though.
Here are the steps I took:
(Works with 10.14.6)
Post Install Script:
(replace Administrator with your username)
#!/bin/sh
#Account Script
sudo chmod +x /tmp/admin.py
sudo python /tmp/admin.py
#Enable Autologin
sudo defaults write /Library/Preferences/com.apple.loginwindow.plist autoLoginUser -string Administrator
#Reboot Mac
sudo shutdown -r now
exit 0 ## Success
exit 1 ## Failure
Posted on 09-20-2019 03:09 PM
@kericson I've used your workflow and autologin still doesn't work for me. Well, it works if i execute the workflow AFTER the user has logged in once. How is your policy triggers - ie is it part of a DEP workflow?
Posted on 01-14-2020 12:34 AM
@mhasman @Hugonaut @chrisdaggett @kericson Did you guys get that to work with Catalina?
Posted on 01-14-2020 05:33 AM
@arnoldtaw Unfortunately not so far. Catalina is making things difficult on all accounts. (and just sucks in general IMO even administration aside... if I'm blunt).
Posted on 01-14-2020 06:01 AM
@arnoldtaw I haven't tried this with Catalina. My results on this became more hit and miss so I moved away from it.
Posted on 01-14-2020 11:35 AM
@arnoldtaw No, i did not succeed using root. So, instead of breaking macOS, I had to adopt another solutions