Can't access Linux Samba share from OSX

3

0

I have a samba share in an arch linux server, that I cannot access from OSX, but I can access it normally from any Windows machine. When I try to access it from the terminal (from OSX) with the anonymous user it returns an authentication error:

$ smbutil view -a //192.168.1.154/data
smbutil: server rejected the authentication: Authentication error

When I try to access it with guest access I get:

$ smbutil view -g //192.168.1.154/data
smbutil: server connection failed: Invalid argument

Here is my smb.conf:

[global]
        workgroup = WORKGROUP
        server string = Shares
        security = user
        map to guest = Bad User
        logfile = /var/log/samba/%m.log
        max log size = 50
        dns proxy = no

[data]
        path = /mnt/data
        guest ok = yes
        read only = no
        browsable = yes
        force user = nobody
        force group = nobody
        create mask = 0755
        directory mask = 0755

svart

Posted 2016-04-26T16:01:54.393

Reputation: 31

Anything in the smb log on the Linux box? – D Schlachter – 2016-04-26T16:53:50.593

Not really. In fact, there is no evidence of me trying to access it. – svart – 2016-04-26T17:15:05.927

Answers

2

In Finder, choose Go -> Connect to Server, and in the server address box enter

smb://somedomain%5csomeuser@someserver/path/to/data

  somedomain is the domain you log in via as if logged onto the windows machine, 
  someuser is your user id, 
  someserver is server hosting the share you're trying to access
  /path/to/data is the rest of the path to the location you want

strobelight

Posted 2016-04-26T16:01:54.393

Reputation: 473

Late to the game, this solved my problem. – jsimon – 2019-02-09T02:39:05.680

0

It's a Bug in Samba affecting OSX clients. It drove me mad!

https://bugzilla.samba.org/show_bug.cgi?id=11847

cele_82

Posted 2016-04-26T16:01:54.393

Reputation: 11

1Answers should contain quote and cite all relevant information from links – Ramhound – 2016-09-29T23:35:21.140

Please quote the essential parts of the answer from the reference link(s), as the answer can become invalid if the linked page(s) change. – DavidPostill – 2016-10-03T09:27:40.360

0

I had this same problem but when trying to connect from mac os sierra to a windows host. I tried on a second macbook pro and same thing. Eentually I traced it back to the date and time on the windows machine. If the date/time is out by more the 1 hour then client connection fails. I synched the times to be the same and voila.

OhMy

Posted 2016-04-26T16:01:54.393

Reputation: 1