I rebooted my Macbook Air (running Sierra) about 3 days ago, which led to the progress bar to fill up to 100%, then freeze. After going down the rabbit hole, I found out my User 'login' was removed, but all my files are still safe and sound on my mac. I'm stuck at a login screen with the only option being 'Other...' which didn't work for entering my credentials.
Attempting to go through 'rm [...] .applesetupdone' and creating an account returns "Unable to connect to the MDM server for your organization."
Finally to the question: How do I create a user from a folder without using System Preferences? I have access to Single-User, Recovery, and Terminal.