MacOS – Allow network user login via terminal

macmacbook promacos

I accidentally deselected "Allow network user login at login window" on my mac. I need to restore that setting. I have admin and access to every file via the startup terminal utility (but can't login with my user name). How do enable network user login from the terminal?

Best Answer

first: sudo /usr/sbin/dseditgroup -o edit -a "com.apple.loginwindow.netaccounts" -t group "com.apple.access_loginwindow"

then: sudo /usr/sbin/dseditgroup -o edit -a "yourAccount" -t group "com.apple.loginwindow.netaccounts"

Related Question