Cannot create new user in Single-user mode
-
07-03-2021 - |
Question
I try to create new user using the following commands:
/sbin/fsck -fy
/sbin/mount -uw /
launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
dscl . -create /Users/username
But after the last command I get the error /System/Library/LaunchDaemons/com.apple.DirectoryServicesLocal.plist: No such file or directory
. Actually, I get it on every launch of dscl
command, even without any arguments. How can I fix it?
Solution
It turned out that this error can be just ignored, because the user is properly created anyway.
Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange