Go Back   The macosxhints Forums > OS X Help Requests > UNIX - Newcomers



Reply
 
Thread Tools Rate Thread Display Modes
Old 04-26-2009, 04:56 AM   #1
pappie
Prospect
 
Join Date: Apr 2009
Posts: 3
I can not run dscl commands in single-user mode

I would like to create users and give them admin rights.

In order to do that i would need the dscl command.

when i run the command the system returns:

For Single User Mode you must run the following command to enable use of dscl
launchctl load :System:Library:LaunchDaemons/com.apple.DirectoryServicesLocal.plist

I run that command and try again the dscl command.
Now the system returns the same "For Single..." message.
When I then run the "Launchctl ..." again it sys that it's already loaded.

Any clues why the comand does not work but the correct .plist is loaded?

Thanks in advance
pappie is offline   Reply With Quote
Old 04-26-2009, 04:41 PM   #2
blb
All Star
 
Join Date: Jan 2002
Location: CO, USA
Posts: 908
Any reason you are doing this in single-user? Also have a look at http://support.apple.com/kb/TS1543 for the full list of steps for using dscl in single-user.
blb is offline   Reply With Quote
Old 04-26-2009, 07:17 PM   #3
Hal Itosis
Hall of Famer
 
Join Date: Apr 2002
Posts: 3,315
dscl might not even be necessary... if the node structure is understood.

For example, we can see which users are admins by reading the plist:
defaults read /var/db/dslocal/nodes/Default/groups/admin users
Hal Itosis is offline   Reply With Quote
Old 04-29-2009, 11:04 AM   #4
mad-macs
Prospect
 
Join Date: Apr 2009
Posts: 2
Typo in Single User Mode for dscl

I ran into the same problem, and upon checking out Apple Support for using dscl in SUM I noticed that you are prompted to enter the wrong command.

Single User tells you to run
launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServicesLocal.plist

What you actually want is just
launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
(note the lack of Local before the .plist)

Do that and you should be able to dscl to your hearts content.
mad-macs is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 05:31 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.