Dscl Error
Contents |
enter a title. You can not post a blank message. Please type your message and try again. This discussion is locked quarterwit Level 1 (0 points) Q: Unable to make any user Administrator, seemingly... Hi,Like many others, I have been through the "loss of "
Dscl Create Invalid Path
wants to set up new accounts; Journler (a third party app for note-taking) won't accept the password I use for it; and apps such as Time Machine will not accept my details.I can log in as root. The usual
Edsrecordnotfound
advice recommended at this stage is to go to the Accounts preference pane and check "Allow user to administer this computer".However, after checking this box, I can't save the change; either switching to another account and back or trying to close the lock result in the checkbox unchecking itself!All the accounts, thus, are standard, and I can't change them.What I want, of course, is an admin account that works (ie, a way to make the checkbox changes stick), and my Mail to recognise me, and Journler to recognise me. (I assume all these things are related.)I'd be very grateful for any help! Lawrence xx MacBook G4, Mac OS X (10.5) Posted on Mar 19, 2008 4:39 AM I have this question too by Nielsomat,Solvedanswer Nielsomat Level 1 (10 points) A: (skip to "** QUICKQUICK **" if you don't have much time)So I cancelled sleep last night after having lost administrator access as well. Basically what happened is that Azureus went apeshit and started filling up my whole hard disk whilst being unkillable. In the end I just held down the power button to shut the machine down. A reboot later all administrator users were gone. I went into single user mode to enable the root user, logged into it and tried to give administrator rights back through System Preferences. To no avail! Exact same problem as unry described in his initial post.I played around with dscl a while and when trying to add my user to the admin group I got the eDSUnknownNodeName as well. My hatred for Mac OS X grew a lot in these hours but I'm proud to say that human > machine. In my case what happened is that OS X fu**ed up big time and got itself into a position from which it couldn't recover on its own.Bit of background regarding dscl: Inf
Slacks, MacJamesIsIn There is this thing that happens from time to time where a Mac on our network will get confused about the local administrator account. For whatever reason it thinks it's a domain administrator account. If you were to run id as that user you would see a bunch of domain related information which should not be there. Perhaps the reason for this relates to the fact that we use a name for the local administrator account which is the same as a name we use for a domain-level account. I didn't set it up this way, and I'm advocating for a change. We shall see. Regardless, usually when this happens (and it's pretty easy to notice since the dock is reverted to default and the user doesn't https://discussions.apple.com/thread/1448801?tstart=0 have write permissions to even their desktop) I can get the correct administrative account back by a restart. Today for one machine this was not working. Also, while it is in this state the administrator account can't open the System Preferences. The only other administrative account was a domain user (mobile account). Unfortunately I was not able to log into that account at all as log in would hang at each attempt. Tough situation: can't log in as a real local administrator http://jamesisin.com/a_high-tech_blech/index.php/2012/05/the-mac-that-broke-the-administrator-account-and-how-i-fixed-it/ so I can't fix any of this mess. I found this article which offered a solution for creating and elevating an account from the command line. This article uses a slash as the location identifier (/), but that was not working for me. Others said localhost would work, but I couldn't get that to work either. In the end I used the dot (.) and that allowed these commands to do their jobs. Also, the article neglects to mention that you must use sudo to run these commands successfully. Without using sudo you will likely get this error:
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and http://serverfault.com/questions/494765/dscl-command-failing-to-create-user-mac policies of this site About Us Learn more about Stack Overflow the https://jamfnation.jamfsoftware.com/discussion.html?id=6664 company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody ds error: can ask a question Anybody can answer The best answers are voted up and rise to the top dscl command failing to create user - mac [closed] up vote -2 down vote favorite I am a mac user I created a user from the terminal using dscl (I am more familiar to linux and adduser command) It seemed to work but I ds error: -14009 can't find my newly created user under /Users, and the command sudo su $newuser is not recognized by the terminal. (but when I go to my mac preferences, I can see the $newuser created). How can it be ? mac-osx user-accounts share|improve this question asked Mar 30 '13 at 14:12 Newben 972 closed as off topic by Wesley, mdpc, Dave M, Khaled, petrus Apr 1 '13 at 19:48 Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question. 1 Could you please copy into your question the exact error message you get? –Jenny D Mar 30 '13 at 14:17 @JennyD I get su: unknown login: git –Newben Mar 30 '13 at 14:25 @JennyD, I added this line dscl . -create /Users/git
JNUC 2016 Sessions Mini Events Discussions Overview User Groups JAMF Nation Global Foundation DOCUMENTATION Casper Suite Admin's Guide All Product Documentation OTHER Store Job Board JAMF Software Log In JAMF Nation, hosted by JAMF Software, is a dynamic and knowledgeable community of Apple-focused IT admins and Casper Suite users. Join us in person, in October, for the annual JAMF Nation User Conference (JNUC) to discover new and better ways to manage Apple devices. CLOSE Learn more about JNUC 2016 CLOSE 2 Destroy managed mobile user accounts Posted: 2/22/13 at 4:15 PM by Sean_M_Harper Currently I run the following script to destroy the managed mobile user accounts left behind on machines (such as in my LMC computer labs). It appears to work, but the script (when run via Remote) claims to fail. I have listed the log below the actual script. Is there something I am missing, or perhaps a better way to write this script? Any help would be great! Script: dscl . -delete /Users/ dscl . list /Users | grep -v "_" #!/bin/bash UserList=/bin/ls /Users | /usr/bin/grep -v "Shared"\ for u in $UserList ; do if [[ `/usr/bin/dscl . read /Groups/admin GroupMembership | /usr/bin/grep $u -c` == 1 ]] then /bin/echo "Admin account detected skipping..." else /usr/bin/dscl . delete /Users/$u && /bin/rm -rf /Users/$u fi done Log (example): /usr/sbin/jamf is version 8.61 Executing Policy 2013-02-22 at 4:06 PM | amccutchan | 1 Computer... Mounting afp://10.5.10.33/CasperShare to /Volumes/CasperShare... Running script mobile_users_destroy.sh... Script exit code: 185 Script result: