macOS Remove Admin Account with Terminal

macOS Remove Admin Account with Terminal

Sometimes you might need to remove an admin account on a mac with terminal, don't worry as I have found a solution that might work!

To search for a user, use this command:

/usr/bin/dscl . -search /Users name username

If you just need to turn an admin account to a normal user, use this command:

sudo dseditgroup -o edit -d UserName -t user admin

You can then use this command to delete the user:

 

sudo /usr/bin/dscl . -delete "/Users/username"
Cet article vous a-t-il été utile ?
Utilisateurs qui ont trouvé cela utile : 0 sur 0
Vous avez d’autres questions ? Envoyer une demande

0 Commentaires

Vous devez vous connecter pour laisser un commentaire.
Réalisé par Zendesk