Comments (2)
When running sysadminctl
on 10.13, the admin user and password need to be passed to sysadminctl
in addition to the -addUser
options.
Changes to the sysadminctl
command can be seen in the usage output on each OS:
macOS 10.12.6
Usage: sysadminctl
-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>]
-guestAccount <on || off || status>
-afpGuestAccess <on || off || status>
-smbGuestAccess <on || off || status>
Pass '-' instead of password in commands above to request prompt.
macOS 10.13.2
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.
from macos-cookbook.
Resolved via #33
from macos-cookbook.
Related Issues (20)
- Maintain Users
- Unable to install Xcode in macOS 10.14.5 HOT 2
- Command Line Tools install fails for Catalina HOT 1
- Xcode install fails on Chef 15
- Remove `command_line_tools` resource HOT 1
- [BUG] AutoUpdate key does not exists on MacOS Mojave HOT 6
- [BUG] `plist` resource does not properly work with `dict` types HOT 2
- Can't configure xcode resource to only install GM version HOT 6
- command_line_tools library doesn't support latest Big Sur betas
- [BUG] HOT 4
- 2MFA bypass HOT 3
- [BUG] xcode resource attempts to auth with Apple even if the on-disk Xcode is up-to-date
- [BUG] defaults resource passes array values incorrectly to /usr/bin/defaults
- [BUG] defaults resource does not handle whitespace in strings HOT 1
- [BUG] defaults resource doesn't handle dictionaries correctly
- [BUG] Latest version in the supermarket is 3.4.2 HOT 2
- [BUG] Certificate installation fails (due to wrong order of parameters?)
- [FEATURE] keychain resource should be able to update an existing keychain's password
- [FEATURE] macos_user should be able to update passwords and be more atomic HOT 1
- This repo is missing important files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macos-cookbook.