Solved

Resetting password on a Macbook Pro 10.6 Snow Leapard

Posted on 2010-08-23
11
1,135 Views
Last Modified: 2013-11-24
I've tried this with no luck:

1.Boot into single user mode (press Command-S at power on)
2.Type fsck -fy
3.Type mount -uw /
4.Type launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
5.Type dscl . -passwd /Users/username password, replacing username with the targeted user and password with the desired password.
6.Reboot

After running step 5 I get this error:

<dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)

I have a user account that doesn't show when using the password reset tool.  I tried this method and it doesn't work either.  I can see the users folder under /Users but can't seem to reset the password.

Any suggestions?
0
Comment
Question by:GDavis193
  • 4
  • 3
  • 2
  • +2
11 Comments
 
LVL 53

Expert Comment

by:strung
ID: 33504285
0
 
LVL 53

Expert Comment

by:strung
ID: 33504298
0
 
LVL 15

Expert Comment

by:roylong
ID: 33504840
If it's the admin/root password, then boot from the installation DVD and there is an option from the menus once booted to the installer which lets you do this.

If it's a user password, log in as root and open a terminal window and type:

passwd [username]
0
 

Author Comment

by:GDavis193
ID: 33505051
ok so I tried that but it shows Unknown user name /Users/<username>

If I ls -l in the Users folder I see the folder but it looks a little different than the other folders.. ie:

-rw-r--r--       1    root           wheel        0    Jun 30  2009  .localized
drwxr-xr-x+  13  HBADMIN  staff          442 Aug 23  11:40 HBADMIN
drwxr-xr-x+  17 186430343 2054444   578 Jun 30  10:42 <username>

There are numbers instead of descriptions.  I can access and move around the <username> directory.

0
 

Author Comment

by:GDavis193
ID: 33505098
And it's a regular user Im trying to reset the password for.  root and an admin account both work fine.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 15

Expert Comment

by:roylong
ID: 33505434
It looks like something you did with dscl may have screwed up something... ...did it look like that (the folder) before the dscl command?

What are the contents of the folder looking like?  i.e. is everything inside the folder still intact? Movies, Photos, Documents, Library etc..

If it's truly screwed then see if you can rename the folder, delete the original user (but not user folder), recreate the user, login as root, copy the contents of the original folder into the new user folder.
0
 
LVL 7

Expert Comment

by:marook
ID: 33505467
Yeah, from root or another admin, delete the user and safe the folder.

Recreate the user. Move content back..

Any chance the user comes from AD?? (those numbers look like AD user id's..)
0
 
LVL 10

Expert Comment

by:EdTechy
ID: 33505470
If both the root and admin pw are working, you could just login as one of them and reset the password in the accounts pane or in terminal type passwd username.
0
 

Author Comment

by:GDavis193
ID: 33505519
Thats the problem - the user account doesn't show in the User Accounts utility.  From what I understand the laptop WAS joined to the domain at one point but has since been removed.  The user logs in locally.

So how would I delete the user account from a terminal session or from Command+S at the chime screen.  Please note - I AM A MAC NEWBIE.

Yes, the contents of the users folder all appear to be 100% intact.

0
 
LVL 15

Accepted Solution

by:
roylong earned 500 total points
ID: 33505571
so try this:

create a new user, with the same user name - best to do this from the GUI logged in as admin/root user (Accounts pane in System Preferences).  See if it says that user already exists or not - if it lets you create the new user then you know something is royally screwed with the original user.

Copy the content into the newly created user folder and then log in with the new user name and see what happens.
0
 

Author Closing Comment

by:GDavis193
ID: 33514925
Thanks!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
time machine 8 46
Why does PowerPoint:mac 2016 not include audio when exporting to video? 2 150
Upgrading Mac Mini Server to Sierra 5 348
Sluggish MBP browser 17 55
Syslogd is a utility that traps and logs messages sent by running processes. It is configured with the syslog.conf file, which consists of lines containing a pair of fields: "the selector field which specifies the types of messages and priorities to…
Thanks to luck and dedication (hitting refresh every 5 seconds when the pre-orders were going live at midnight on April 10th) I managed to actually receive an Apple Watch on release day, April 24th. Which means I’ve been using it daily for just ov…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now