

Any "assumed" details in the recipe would be missed by me.On my Yosemite OSX machine I often get an ICloud prompt after awaking from sleep or after a reboot like this Anybody have any ideas? I am new to the command prompt so exact details would be much appreciated. When I use the "mv" or "rm" lines I get "no such file or directory". There is no "username" to replace (that I see) as suggested in the new hint. So if you've somehow messed up your primary OS X user, this is a good fix that may get you up and running again, even if re-running the OS X installer does not. When you hit RETURN after typing exit, OS X will restart and the setup assistant will launch automatically. Once the command-line prompt appears, type the following: Boot into single-user mode (command-S during startup)Ģ. Here is the substance of the original hint:Īccording to Apple, to re-run the assistant, you need to:ġ. I could really use this hint, but it didn't work for me. A good security hedge for end users who don't like passwords, but still a new wrinkle to deal with. Solve this by giving your temporary account a short password, unless you're sure that you won't have to do any superuser shenanigans from Terminal as part of the config. I also discovered something interesting: if you give your temporary account (or any Admin account) no password, you'll find that when you boot up and try to run sudo from a shell (bash at least), it won't work - it just dumps back to the main user prompt. Even if you enable Root and log in as that, the Accounts prefpane in Leopard won't let you delete the last or only Admin user account. delete /Users/temp to axe the account info (much shorter and easier to remember), but apparently the dscl command doesn't work in single-user mode even when you follow the instructional prompt to start Local Directory Services - oh well.īTW, trying to do all this through the GUI is pretty much impossible. I was hoping that I might be able to just type dscl. AppleSetupDone wasn't really necessary for OSes 10.2 thru 10.4, you do have to get rid of the Setup flag file in Leopard, or when you reboot, you'll get a login window and no working account to log in with. $ rm /var/db/dslocal/nodes/Default/users/ist
#Password reset for mac yosemite install#
However, I do this after simple configs or installs, e.g., install an OS, apply Software Updates, and then give it to the end user to create a fresh account.) (Note that deleting /Library/Preferences/ is optional and in some cases may cause problems after pre-configuring some third-party software. Note that this must all be done in single user mode (hold Command-S during boot). Here are the Terminal commands to delete a temporary (or lone) account in single-user mode on Leopard (in the following commands, replace username with whatever account short name you've created). This hint will probably be most useful for folks who configure machines for a living, but if you're selling or giving away your machine, or just troubleshooting login issues, it may come in handy.

Things have changed in Leopard, so here's some new info. This really old hint has the basics for resetting a machine back to no users, so it boots to the Setup Assistant again.
