- You MUST be root for the below commands to function properly.
- For any user that also had Filevault configured, they will need to also be readded to FileVault.
To list non-system user accounts (active or disabled):
# dscl . -list /Users | grep -Ev "^_|com.*|root|nobody|daemon|\/"To determine if a specific user is disabled (Replace USERNAME with the actual username in the below commands). A null result would indicate the user is NOT disabled:
# dscl . -read /Users/USERNAME AuthenticationAuthority | grep DisabledUserTo re-enable the user manually, as root or a sudoer:
chsh -s /bin/bash USERNAME
chshcan be used to set a different default shell rather than bash. It needs only to not be set to /usr/bin/false. Once complete, the disabled user should reappear in both the login screen and Users & Groups Preferences.