I'm trying to share my MacBook's files via Samba sharing. I've set it up in Settings, but can't connect to the machine from another computer!
On the other computer I set up the connection with the correct IP address, username and password. Then when I try to connect, it shows a dialog in which the server asks for password. Then I enter the correct password, and shows the dialog again and again. If I dismiss the dialog, the client shows a this message:
Logon failure: incorrect username and password
However I'm sure the username and password are correct. (If it matters, the client is just an android tablet with a samba client app. The same app handles Windows shares without any problem.)
Has anyone faced a similar problem?
My OS X version is Mavericks.
Best Answer
Samba passwords are managed separately from your regular account password. Have you set-up your user to enable samba sharing in the options menu? You need to do it once otherwise the login won't work.
In the File Sharing preference pane tick the checkbox next to the user you want to enable file sharing for and a window will pop-up asking you to authenticate.
As soon as this is done you should be able to login from your android tablet.
UPDATE
The root cause of the issue might be that 10.9 uses a new SMB2 Stack completely written by Apple (SAMBA is not used anymore). Apple's SMB2 implementation is not compatible with many other SMB2 NAS products on the market today while Windows 7, 8, and 8.1 work just fine. In short, it's an Apple bug.
As a workaround you can force OSX to use SMB1 instead of SMB2 using a configuration file:
Paste the following line followed by a return key (command should be one single line)
echo "[default]" >> ~/Library/Preferences/nsmb.conf; echo "smb_neg=smb1_only" >> ~/Library/Preferences/nsmb.conf
Explanation: