- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Looking for a Jamf Managed Service Provider? Look no further than Rocketman
________________
Virtual MacAdmins Monthly Meetup - First Friday, Every Month

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Looking for a Jamf Managed Service Provider? Look no further than Rocketman
________________
Virtual MacAdmins Monthly Meetup - First Friday, Every Month
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 11-05-2018 09:34 AM
@Hugonaut Thank you Hugo - it works! Appreciate your help!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Looking for a Jamf Managed Service Provider? Look no further than Rocketman
________________
Virtual MacAdmins Monthly Meetup - First Friday, Every Month
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 08-01-2019 09:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 08-01-2019 09:28 AM
I did not try it with Mojave yet. Maybe will try in 2-3 weeks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- I used this tool to create a py script. MacUserGenerator
- Add the py script into a custom PKG with composer
- Create a kcpassword for this account https://github.com/xfreebird/kcpassword and add it to you custom PKG
- Add a post install script & kcpassword into the PKG.
- Done
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 01-14-2020 12:34 AM
@mhasman @Hugonaut @chrisdaggett @kericson Did you guys get that to work with Catalina?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
