大网数据广告活动
服务器运维问答

Ubuntu Anonymous Samba Share Now Not Accessible From OSX Machine

· 52CE 我爱测

I have an OSX machine which has been connected as Guest to a Samba share on my Ubuntu machine. It's no longer connecting. When I click 'Connect to Server...' in Finder, and enter smb://server/anonymous , it gives the message: The…

问题原文

原帖链接 · Josh · CC BY-SA 3.0

I have an OSX machine which has been connected as Guest to a Samba share on my Ubuntu machine. It's no longer connecting. When I click 'Connect to Server...' in Finder, and enter smb://server/anonymous, it gives the message:

There was a problem connecting to the server “server”.
Check the server name or IP address, and then try again. 
If you continue to have problems, contact your system 
administrator.

However, I can connect as a registered user on the Ubuntu box but can't edit the files because they are owned by the nobody user.

I haven't altered any settings, just haven't tried to connect in a week or so. Any ideas what might have caused this sudden change?

Additional Info:

smb.conf:

[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = server
security = user
map to guest = bad user
dns proxy = no
#===== Share Definitions =====
[Anonymous]
path = /mnt/raid1
browsable = yes
writable = yes
guest ok = yes
read only = no

On the Ubuntu box:

$ smbclient //server/anonymous -U nobody -N
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.8-Ubuntu]
smb: \>

And:

$ netstat -atn
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN
tcp6       0      0 :::139                  :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6       0      0 :::445                  :::*                    LISTEN

On the Mac:

$ mount_smbfs -N //nobody:@server/anonymous /test/
mount_smbfs: server rejected the connection: Authentication error

So it looks like I can connect to the share on the Ubuntu machine but not on the Mac.

I've also tried connecting with another Mac but it's the same outcome.

已采纳解答

原帖链接 · Josh · CC BY-SA 3.0

It appears this is a known bug between the Ubuntu smbd version 4.3.8 and Mac OS X version 10.11.

https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1572301

There's no easy resolution yet but should be fixed in due course.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-04-27)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。