I am trying to create user on OS X El Capitan with admin priviliges from super-user mode.
After running /sbin/fsck -fy
and /sbin/mount -uw /
and launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
everything works. But after dscl . -create/Users/USERNAME
i got error no such file or directory. I tried it even with SIP disabled but it doesn't work too. Thanks for the help.
dscl create user doesn't work on el capitan
2k Views Asked by Jozef Vrana At
2
There are 2 best solutions below
0

In El Capitan, the mounts have been changed so that not even root can edit files in some mounts...ACL changes.
The feature is called SIP and is explained in other stack exchange posts:
essentially, can boot into recovery mode, type csrutil disable, boot back into default user mode, make changes, then presumably, you might want to re-enable csrutil similarly.
Thanks for the reply, but SIP had no effect.
I finally solved it. The problem was
/System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
that was used in 10.6 and earlier, I was using/System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
Thedscl
commands were executed despite the error with plist and user got created.