Dscl Permission Error
Contents |
Please enter a title. You can not post a blank message. Please type your message and try again. This discussion is locked mrwinter Level 1 (0 points) Q: WGM creates ldap entries but dscl doesn't I can successfully create dscl edspermissionerror users and groups in Workgroup manager on my Xserve running 10.5.7 server when
Ds Error 14120
bound to my local LDAP directory (127.0.0.1) as the newly created diradmin user but when I try to do the same dscl remote host using dscl in a terminal as the same user I get an error as follows:/LDAPv3/127.0.0.1/Groups > create . test_group
" Ds Error: -14009 (edsunknownnodename)"
as I intend creating users and groups from an external script - but since I can successfully create entries using the same user in WGM, how is it I can't using the same credentials in a terminal?Any thoughts greatly appreciated...(I also tried changing the password type of the diradmin from OD to crypt but it doesn't seem to have changed anything...) Intel Xserve, Mac OS X (10.5.7) Posted on Aug edspermissionerror 12, 2009 3:01 PM I have this question too Close Q: WGM creates ldap entries but dscl doesn't All replies Helpful answers by cattoy, cattoy Aug 14, 2009 1:46 PM in response to mrwinter Level 1 (0 points) Aug 14, 2009 1:46 PM in response to mrwinter I'm experiencing the same issue; I can create/add users to groups in WGM but not on the command line. I get
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us
Ds Error: -14009 (edsunknownnodename)
Learn more about Stack Overflow the company Business Learn more about hiring developers or
Dscl_cmd Ds Error Edsrecordnotfound
posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up https://discussions.apple.com/thread/2113910?tstart=0 and rise to the top Can't connect to remote machine via SSH - error: Permission denied (publickey,keyboard-interactive) up vote 0 down vote favorite I've been trying to connect to the remote machine with the new second admin account but password was rejected. I'm very certain that I have typed the right password for the second admin account. After three attempts, I received the following error: $ Permission denied http://superuser.com/questions/1005685/cant-connect-to-remote-machine-via-ssh-error-permission-denied-publickey-ke (publickey,keyboard-interactive). There was a moment when it ask me about some Key. I processed to type yes. Which after three failed login attempts, I've have yet to see the Key option. I just keep getting the above error. I think it wanted me to type in the current admin user (first admin) that was logged in. If that is the case, how can I add my second admin account to login in (via SSH) while first admin is logged in (GUI)? I'v created the second admin user as so... sudo dscl . create /Users/$USERNAME sudo dscl . create /Users/$USERNAME UniqueID 405 sudo dscl . create /Users/$USERNAME PrimaryGroupID 80 sudo dscl . create /Users/$USERNAME NFSHomeDirectory /private/var/$USERNAME sudo dscl . create /Users/$USERNAME UserShell /bin/bash sudo dscl . passwd /Users/$USERNAME "$PASSWORD" sudo dscl . append /Groups/admin GroupMembership $USERNAME ...and enabled Remote Login with the following settings... sudo systemsetup -setremotelogin on sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist > /dev/null 2>&1 osx bash ssh administrator share|improve this question asked Nov 26 '15 at 7:41 James Dean 82 what is in the server log? –Jakuje Nov 26 '15 at 14:01 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote you probably have the
X administrator privileges, without previous knowledge of the root or an administrator's password. We'll be using Single User Mode (SUM) to gain root access to the computer. If you're still http://www.hackmac.org/tutorials/from-standard-to-administrator/ unfamiliar with SUM, it's a diagnostic boot option built into Unix that automatically https://www.inteller.net/notes/change-user-id-on-snow-leopard logs you in as the root user, or "super-user", allowing the usage of unrestricted commands. Requirements Access to Single User Mode (If you're locked out, check out our post on how to unlock it.) 1. Power Down If your computer is on, go ahead and turn it off. To boot into ds error Single User Mode, we need to press a key command as the computer boots up. 2. Power Back Up Press the power button, and as soon as the computer begins to turn on, immediately and simultaneously hold the Command (Apple) key and the "s" key. This will boot the computer into SUM. Be sure to hold the keys down until the screen turns ds error: -14009 black and white text scrolls down it. 3. Mount The File System To make changes to the files, including the "user group" that a user's account is in (Standard, Managed, or Administrator), we need to mount the file system, because in SUM, the system doesn't do it automatically. To do this, wait until the white text has stopped scrolling down the screen, then type the following and press enter: mount -uw / 4. Change The User Group Once you've got the file system mounted, we want to change the GroupMembership of an account. We'll use the dscl utility to change it with the following command, replacing "username" with the short name of the user you want to give administrator privileges too: dscl . -append /Groups/admin GroupMembership username After you've executed that command, type: reboot And hit return. There you have it! The computer will reboot and start up normally, and you've successfully changed the GroupMembership of a Standard user account to an Administrator account. Additional Information Just another piece of additional information; in Single User Mode, you can also reset the root password, and be able to use t
10.9, 10.10, 10,11) Info Change a user's User ID on Mac OS X (10.6, 10.7, 10.8, 10.9, 10.10, 10,11) Posted by Roman | Permalink | filed under: Mac OS X How to change a user's ID on Mac OS X Version 10.6 and above (10.6 "Snow Leopard", 10.7 "Lion", 10.8 "Mountain Lion", 10.9 "Mavericks", 10.10 "Yosemite" and 10.11 "El Capitan") I always wondered why I couldn't write and create folders (which is also, in fact, a write operation from the unix point of view) on my other Mac's AFP share. Finder always complained about insufficient rights - even when I was trying to write to the user's own home folder on the other Mac! Ok, maybe it was too obvious: My users had the same name but different user IDs. I wouldn't have been surprised when that would've happened on my linux or BSD boxes - but with Apple products? No way, I thought. But I was wrong. Now, my problem was: I couldn't imagine that it's possible to change the user ID (uid or UniqueID in Apple's terms) without any problems - taking into account that Mac OS X is still something like a heavily customized BSD (ok, no ranting here please, I know the differences). So, after some googling I found an article on lissot.net [the page seems to have changed since I wrote this guide] which covered changing the uid on Leopard. While most of the information is still true with Snow Leopard, the process (and some of the commands used) should be modified slightly. There may be a problem with this procedure when FileVault 2 full disk encryption is enabled (according to javadoug's comment below). Be sure you have a proper backup and a second user you can log in with before changing the UID. Ok, let's get going: 0. Prequisites First of all, don't do this while you are logged in as the user whose uid you want to change. Seriously, don't do that. The imho best way is to use "sudo". With sudo you have (at least) two options: You could prefix "sudo" to each of the commands given below (but read th