Skip to content

Instantly share code, notes, and snippets.

@rtrouton
Created January 20, 2018 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtrouton/4e2e3c21f1e9e4087d8ef45be2febb02 to your computer and use it in GitHub Desktop.
Save rtrouton/4e2e3c21f1e9e4087d8ef45be2febb02 to your computer and use it in GitHub Desktop.
How to use sysadminctl
Usage: sysadminctl [[interactive] || [-adminUser <admin user name> -adminPassword <admin user password>]]
-deleteUser <user name> [-secure || -keepHome]
-newPassword <new password> -oldPassword <old password> [-passwordHint <password hint>]
-resetPasswordFor <local user name> -newPassword <new password> [-passwordHint <password hint>]
-addUser <user name> [-fullName <full name>] [-UID <user ID>] [-shell <path to shell>] [-password <user password>] [-hint <user hint>] [-home <full path to home>] [-admin] [-picture <full path to user image>]
-secureTokenStatus <user name>
-secureTokenOn <user name> -password <password>
-secureTokenOff <user name> -password <password>
-guestAccount <on || off || status>
-afpGuestAccess <on || off || status>
-smbGuestAccess <on || off || status>
-automaticTime <on || off || status>
-filesystem status
Pass '-' instead of password in commands above to request prompt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment