Run my Mac command “chsh -s /usr/local/bin/false” and can't log in to my account again
OK - bummer situation, but probably pretty easy to get around.


Boot in single user mode, mount the drive as read&amp;write by running /sbin/mount -uw /, remove the /var/db/.AppleSetupDone file and make a new admin account
Use that admin account to change back the shell for your user.
Log out and check your account.
Clean up the “temporary” admin account if you wish.


Nothing can go wrong, except for perhaps FileVault or no backup or a firmware password so if you can finish a backup or might have another admin account already - using that would be much better in case the above outline isn’t workable for you.

iMac is stuck in a login loop

https://support.apple.com/en-us/HT202860