Deleted the 'login' file, now my Macbook won't get past the loading bar
So recently I was fixing a (minor) issue that I unfortunately can't
remember, and I found a solution online that told me to delete the
'login' file somewhere I believe in usr/local or some similar location.
The post said that the OS will rebuild this file and therefore the issue
I was having will be fixed. So I deleted the file, my Mac was working
just fine, until I shut it down.
Now when I turn it on and enter my password, the loading bar reaches 100% but the Mac is stuck there
and I can't get to the desktop. I tried waiting several hours, so I'm
quite sure it's stuck. I tried the fixes online related to all kinds of
boot issues, but those issues were always that people were stuck on the
apple logo, not on the loading after entering their password.
What I have tried so far and hasn't worked:
- Booting in safe mode
- Resetting the NVRAM
- Selecting bootable disk
- Running the disk repair in the recovery mode
- Reinstalling my macOS in the recovery mode
So is there any way to recover that login file or fix this issue in any
way? Even if the fix would delete all my data, I'm fine with it, as I'm
just really desperate to fix my Macbook.
Thanks in advance.
MacBook Air 13", 10.14