Why can't I mount shares by SMB since High Sierra

16,415

I was encountering the same error "mount_smbfs: server rejected the connection: Authentication error" when attempting to connect via command line using the commands:

mkdir /Volumes/test
mount_smbfs //user@server/test /Volumes/test

However, I was able to elimate the error by going, on the server Mac, to System Preferences - Sharing - File Sharing - Options. Then under Windows File Sharing, click to enable the less-secure password option for the account you wish to use for sharing (optionally, create a sharing-only user for this purpose), and enter that account's password. I was then able to mount the share using the above commands.

Share:
16,415
Sciuriware
Author by

Sciuriware

Updated on September 18, 2022

Comments

  • Sciuriware
    Sciuriware almost 2 years

    Since I updated to High Sierra (directly to 10.13.1) I can't connect my iMacs and MacBook any more by AFP protocol, so I tried SMB.

    open 'smb://user:password@S/Share' :: works, but shows Finder on the screen.

    Another problem is that I can't choose the mount point's name. I work from JAVA applications and thus should work from the command line:

    mkdir /Users/user/Volumes/Share/

    /sbin/mount -t smbfs //user:password@S/F /Users/user/Volumes/Share/

    But this gives:

    mount_smbfs: server rejected the connection: Authentication error

    What did I do wrong or forgot about? Thanks in advance. ;JOOP!

    • Wolfgang Fahl
      Wolfgang Fahl over 5 years
      I think this question is still not properly answered. apple.stackexchange.com/questions/256716/… is similar and also does not provide enough info. I'd appreciate if some of the downvoters would explain why they think this is all clear.
  • Giacomo1968
    Giacomo1968 over 6 years
    The question was self-answered 2 months ago and states what the solution was. If you believe this is a good enough new issue, feel free to post a new question and self-answer.