Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Unable to disable SMB file sharing: Incorrect password error

I'm not sure if this problem was present prior to updating to Lion from the latest 10.6, but I can't seem to disable file sharing using SMB on my MBP. I've only known to have used my login password as the same login when I activated SMB share a while back, and now all I get when using the same password is "Incorrect Password". I've tried implementing most of the suggestions I've found in this forum and on the web and that included resetting the password in System Preferences > Users & Groups (Accounts). I logged in using another admin account and it would not also let me turn off SMB sharing and returning an error "Incorrect Password" whenever I typed in what I believe to be the correct password (which is the user/admin pw used to log into the account currently being used). I have also tried: looking through the System Preferences > Security & Privacy (in hopes that FileVault has a hand in this, and it is currently off), then tried repairing Keychain (newp), and lastly, changed the Master Password to no avail. The one suggested fix I didn't try is creating a new user account and migrating all my files to that account. I'd rather not since that is way too much hassle just to turn off SMB sharing.


If anyone has ideas on how to reset or turn off file sharing using SMB, or knows how to resolve this issue, please post some help as this is driving me batty.


User uploaded file


Thanks!


PS. Also another unrealted question: Is AirDrop not supported on a 2008 MBP? For the life of me, I couldn't find AirDrop anywhere on my mac (looked at the sidebar and prefs to enable it and it's not there as an option). My card type is an AirPort Extreme (802.11 a/b/g/n -- with firmware Broadcom BCM43xx 1.0)

MacBook Pro 17" 2.6GHz, Mac OS X (10.6), 200GB/7200 RPM HDD, 4GB RAM, 2008 non-unibody

Posted on Jul 25, 2011 12:35 PM

Reply
61 replies

Sep 21, 2011 5:22 AM in response to Boaz_

HI Boaz sadly your suggetion of resetting the SMB sharing under ROOT does not work for me. Thanks for the tip it was certainly worth trying! 😎


I have two ADMIN users on this machine mac pro that was migrated form SNOW LEOPARD to LION 10.7.1 and one user works (setting the SMB) and the other does not (incorrect password).


Its very strange.


any further clues by anyone?


w

HONG KONG

Oct 28, 2011 8:01 PM in response to lpotr4

I am wondering if there has been any update on this issue? I too can not un-click my account in the sharing window. It does accept my password, but just puts the tick back in the box immediately. For this reason I have to keep turning SMB on and off if anybody needs access to some files as I am not happy having my admin account enabled. 😟


Caraline

Australia

Nov 3, 2011 8:35 PM in response to lpotr4

Correct me if I am wrong here, but if you don't have SMB Sharing turned on in the first place, then whether or not our user account is selected doesn't really matter, does it? In my mind, this is a bug, no doubt, but if you are not actually ever sharing anything via SMB, then just uncheck the sharing box. Whether or not your user account is selected shouldn't matter any more than having a user listed under the Remote login section, when SSH is turned off.


Just to qualify this, if SMB sharing is disabled as a whole, can anyone still connect to their home folder over SMB?

Nov 7, 2011 2:25 PM in response to Caraline

Try the following:


1. Create a Sharing Only account through "Users & Groups", assign a password to the account. Suppose we you create an account named "mike".


2. In Network select your interface, go to Advanced and then WINS. Under Workgroup set the default WORKGROUP and under NetBIOS Name set whatever suits you (let's assume you put "imac").


3. Now go to Sharing select a folder to share and add the "mike" user account you just created for sharing-only purpose, go to Options tick the checkbox for SMB and then for the "mike" account and enter its password when asked for it.


4. When accessing the shares from Windows box enter username in format "imac\mike" and the password for the account.


This should set you up for accessing your Mac shares from your Windows machine.

Nov 18, 2011 1:12 PM in response to lpotr4

First time poster here, but long time mac user. But I foud the solution to this problem and recon this maybe the solution for more people.Not Native English so if something is not clear please ask and I will elaborate.


This is (very) technical solution, be careful with it, as itcan truly mess up your account.
It includes editing the file that stores your account info/password/etc.
The file is a plist file so some converting needs to be done.
Also all editing is done with vi and I used sudo to acces the file.


  1. Locate the file /var/db/dslocal/nodes/Default/users/<user>.plist
  2. MAKE A BACKUP of the file
  3. MAKE A BACKUP of the file
  4. Copy the file to a location to edit it
  5. Convert the file with ‘plutil’ so it becomereadable
  6. Open the file and find the entry at ‘authentication_authority’
  7. In my file I found 2 lines in the entry

<key>authentication_authority</key>

<array>

<string>;Kerberosv5;;<ACCOUNTNAME>@<lotsof extra info……..></string>

<string>;ShadowHash;HASHLIST:&lt;SALTED-SHA512,SMB-NT&gt;</string>

</array>

THE FIX is to SWTICH these 2 lines around, so the line with ‘SMB-NT’ is the first line

My entry after the switch looked like

<key>authentication_authority</key>

<array>

<string>;ShadowHash;HASHLIST:&lt;SALTED-SHA512,SMB-NT&gt;</string>

<string>;Kerberosv5;;<ACCOUNTNAME>@<lots of extra info……..></string>

</array>


  1. Save the file and convert it back with ‘plutil’
  2. Copythe file ‘over’ the old file in /var/db/dslocal/nodes/Default/users/
  3. Trydisabling and re enabling the setting now in system preference.


For those curious on how I found:

Created a new account where I was able tochange the setting (like people already figured out).
Now using the find command I located all files changed in the last 5 minutes.
Found the files in /var/db/dslocal/nodes/Default/users/ Looked around on the webon what information is stored in there. Came to the conclusion that this mustbe the file holding the info.
Started comparing the files of the 2 users (1 where it was working and 1 whereit was not) and noticed the difference in the ordering of the lines.
Changed the lines around and this did it. …… wooohooooo

Nov 20, 2011 6:32 AM in response to SanderFromH

This is the solution! Thanks SanderFromH!


I had the same problem that I always got "incorrect password" when trying to enable smb for my account on my MBA. I could create new accounts, where it worked, but never for my account that existed before I upgraded to Lion.


This post solved my problem by switiching the 2 lines around in my plist file. Interesting...

Nov 22, 2011 9:47 AM in response to SanderFromH

I get Access Denied when trying to open Default folder. And i'm logged as admin.


By the way, is this the only 'fix' that works so far? Does apple know about that bug? And is that a bug?

SanderFromH wrote:


First time poster here, but long time mac user. But I foud the solution to this problem and recon this maybe the solution for more people.Not Native English so if something is not clear please ask and I will elaborate.


This is (very) technical solution, be careful with it, as itcan truly mess up your account.
It includes editing the file that stores your account info/password/etc.
The file is a plist file so some converting needs to be done.
Also all editing is done with vi and I used sudo to acces the file.


  1. Locate the file /var/db/dslocal/nodes/Default/users/<user>.plist
  2. MAKE A BACKUP of the file
  3. MAKE A BACKUP of the file
  4. Copy the file to a location to edit it
  5. Convert the file with ‘plutil’ so it becomereadable
  6. Open the file and find the entry at ‘authentication_authority’
  7. In my file I found 2 lines in the entry

<key>authentication_authority</key>

<array>

<string>;Kerberosv5;;<ACCOUNTNAME>@<lotsof extra info……..></string>

<string>;ShadowHash;HASHLIST:&lt;SALTED-SHA512,SMB-NT&gt;</string>

</array>

THE FIX is to SWTICH these 2 lines around, so the line with ‘SMB-NT’ is the first line

My entry after the switch looked like

<key>authentication_authority</key>

<array>

<string>;ShadowHash;HASHLIST:&lt;SALTED-SHA512,SMB-NT&gt;</string>

<string>;Kerberosv5;;<ACCOUNTNAME>@<lots of extra info……..></string>

</array>


  1. Save the file and convert it back with ‘plutil’
  2. Copythe file ‘over’ the old file in /var/db/dslocal/nodes/Default/users/
  3. Trydisabling and re enabling the setting now in system preference.


For those curious on how I found:

Created a new account where I was able tochange the setting (like people already figured out).
Now using the find command I located all files changed in the last 5 minutes.
Found the files in /var/db/dslocal/nodes/Default/users/ Looked around on the webon what information is stored in there. Came to the conclusion that this mustbe the file holding the info.
Started comparing the files of the 2 users (1 where it was working and 1 whereit was not) and noticed the difference in the ordering of the lines.
Changed the lines around and this did it. …… wooohooooo

Nov 22, 2011 11:35 AM in response to jmcgeejr

Some more info


- I encountered this problem when I myself upgraded from SL to Lion


- As Gagnar already noticed, removing the SMB-NT willdisable SMB filesharing for that user. I however do not recommend doing it thatway.
Just switch the 2 lines around, once you have done that all the SystemPreferences option regarding the SMB file sharing will work as normal again.
The less you mess around in the plist file directly the safer you are. As faras I can see now this file stores your (hashed) password information etc. So ifthis files becomes corrupted/messed up the system will no longer be able toverify your password and you can no longer log in etc.


- Only root is able to access this file and for goodreasons. I myself did all the access and editing trough the terminal/commandline. I have no idea how safe it is to do these changes trough the ‘normal’finder view.


- As far as I can see now:
Between SL en Lion apple decided to switch the 2 lines around in the plistfile. When you do a clean install or add new users once Lion is installed thisis no problem as the entry in the file is done correctly.
But it seems that apple forgot to add a check in the upgrade to change the 2lines around in all the accounts that existed on the machine.

One thing they can do now I bring out a patch that fixesthis by checking all accounts and switching the 2 lines if they are the wrongway aroud.

A second possibility (and Imy opinion the best) is that the code that reads/changes the information in theplist is patched so that it is able to read/write the lines no matter in whatorder they appear.

Unable to disable SMB file sharing: Incorrect password error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.