Mac OS stuck after login
Try creating a new admin user (follow the steps below) and see if this new user can login without this problem. If the new account also experiences the problem I suggest using Recovery Mode to install a new copy of macOS/OS X as it could be a problem with a preference file or other system resource.


Start up the Mac whilst holding down ⌘-S. After a few moments, you'll see the Mac boot to the command line.
The following command will check the filesystem to ensure there are no problems. Enter:

/sbin/fsck -fy

The next command will then mount the filesystem for it to be accessible:

/sbin/mount -uw /

With the filesystem mounted and accessible, it's time to remove the file so OS X will re-run Setup Assistant:

rm /var/db/.AppleSetupDone

After that, simply enter reboot and your Mac will restart and boot normally. Only this time, Setup Assistant will launch.


Create the new admin user and continue through the setup process then sign in as this user.

To re-install macOS/OS X follow these steps:


Restart your Mac whilst holding down Command (⌘)-R to startup in OS X Recovery
Select Reinstall macOS (or OS X, if your using an older OS) from the options displayed and follow the steps presented


This process does not delete the original System nor does it delete your user accounts or personal data. All existing user accounts will continue to work as before and all personal data will be left intact. Some applications may require reinstallation if using this process as they sometimes install elements of their resources in the /Library folder.