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
2.1k Views Asked by Jozef Vrana At
2
There are 2 best solutions below
0
nichole
On
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.
Related Questions in MACOS
- How do I customize NSOutlineView to have border color?
- Force sublime text to use PATH from the shell value
- Do executable files always open a terminal window on MacOS?
- setting OpenGL version in objective-C
- C std library don't appear to be linked in object file
- Cross compile simple standard C program on Linux for Mac
- How to generate request format for WCF web service method for Mac and iPhone
- Bundle Multiple Xamarin apps in one pkg installer
- How to Handle Command Line Prompt from a Cocoa App
- AVFoundation - Process each image separately
- CMYK NSImage get pixel data
- how i get the mac of ibeacon or BLE
- Set JAVA_HOME on Mac
- Finding active IPv6 interfaces under Mac OS (using Python)
- OSX: Why is my launchd agent running my script twice?
Related Questions in ROOT
- MySql can not grant privileges to root
- MariaDB installed without password prompt
- .htaccess root changed with mod_rewrite
- Go root, create tmux, send commands and then attach - all via a single SSH command in a bash script
- PHP: take a path from site root given an absolute path
- Redirect from server root directory to apache root directory
- Access denied for user 'root'@'localhost' (using password: YES) EVEN when the Password works on PhpMyAdmin
- Reading eeprom on linux without root right
- Vanilla Android allow direct SU/Root access
- How do I connect the RIGHT way from One Server SQL to another and make updates?
- How to define custom location for crossdomain.xml file?
- MySQL: Access denied for user 'root'@'localhost' Mac osx
- Control another tab bar controller's view to root view by Swift code
- Get the output from executed commands through android app
- Is it possible to pipe the password to login as root , rather that typing the password when it prompts in command line?? - Korn shell
Related Questions in OSX-ELCAPITAN
- How to make a CocoaPods project work on OS X El Capitan & Xcode 7 Beta?
- "restricted" folder/files in OS X El Capitan
- How to set up applications requiring legacy java on El Capitan (OS X 10.11)?
- What is a "non-weak zeroing reference"
- Xcode 7 run on Mac OSX 10.10 Yosemite
- Storyboard what does the tag <animations/> mean?
- How to make a menubar app look good with "Dark Mode" in Yosemite?
- Is it possible to run Xcode 6.3 on El Capitan?
- Can't create a new file under the project w/ XCode 6.4 beta under El Capitan
- Xcode 6.3.2 can't run on OSX 10.11 El Capitan Developer Preview 3
- Unable to run Xcode 6.3.2 on 10.11 Beta 2
- "Invalid info.plist value" when uploading iOS 9 app extension
- Switching to Terminal for Octave GUI output
- Replace core data model whilst in development without migrating the data (OSX xcode 8.1 on El Capitan)
- Getting "cat: /release: No such file or directory" when running scala
Related Questions in SUPERUSER
- Linux acquire root permissions through a password popup
- cannot detach from SSH secure shell by "ctrl+A+D"
- Superuser Role Specific to certain Databases in PostgreSQL
- How to update PHP on USBWebserver v8.6
- scheduling task is no more able to access the remote computer administrative drives on the execution of the script
- How to give superuser privileges to MySQL?
- Scala shell not running without super user privilege on ubuntu
- Change file ownership by being a sudoer
- Can't log into a commandline created superuser using Django but account gets created
- Can't connect to mysql aws RDS - 10060 odbc logged error
- Create a permission in Django that can be optionally applied to superusers
- How to Enable Auto Resolution for UTM VM
- Is it possible in node to attain super user / root privileges for a set of actions without running the entire application as root?
- Postgres: upgrade a user to be a superuser?
- change superuser password in django
Related Questions in DSCL
- Authenticating Users on Mac using Cocoa
- strange property result for picture path of the current user in applescript
- Authorize a non-admin developer in Xcode / Mac OS
- Command Not Executing on Certain Conditions
- dscl Command Breaks Login
- heisenbug: pexpect and changing passwords on Mac OS X over ssh
- Read logged in user's domain on OS X
- Why does "dscl . -change /Users/wick RealName" do the job in Terminal but not in ScriptEditor?
- Proper group/permissions using MAMP site
- Running script with admin permissions on OS X
- dscl create user doesn't work on el capitan
- dscl doesn't work from inside re-attached screen
- Launch dscutil in Objective-C
- (MacOS Terminal). How to produce a readable Epoch time from terminal
- Listing non-admin accounts in OS X with dscl
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Thanks for the reply, but SIP had no effect.
I finally solved it. The problem was
/System/Library/LaunchDaemons/com.apple.DirectoryServices.plistthat was used in 10.6 and earlier, I was using/System/Library/LaunchDaemons/com.apple.opendirectoryd.plistThedsclcommands were executed despite the error with plist and user got created.