我有两台 Samba 服务器。一种是运行 Ubuntu 14.04 和 Samba 版本 4.3.9-Ubuntu;另一个运行的是带有 Samba 4.4.5 版本的 Fedora 24。
我可以在 Ubuntu 服务器上存储和使用 Quickbooks 2016 公司文件,但不能在 Fedora 服务器上存储和使用。我可以在两者上读取和写入其他文件,但在 Fedora 服务器上创建和打开 Quickbooks 文件时,Quickbooks 会出现某种连接问题。错误代码为-6000
、-832
和-83
。我尝试在 Windows 8 中使用 Quickbooks。
Fedora 的 smb.conf:
netbios name = micah
hosts allow = ALL
...
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
...
[quickbooks]
path = /home/shares/quickbooks
valid users = @quickbooksgroup, matts, liquidadmin
guest ok = no
writable = yes
browsable = yes
force create mode = 0777
# force security mode = 0777
force directory mode = 0777
乌班图的:
[global]
unix password sync = yes
passwd program = passwd %u
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
[shared]
path = /home/shares/shared
valid users = @everybody
guest ok = no
writable = yes
browsable = yes
force create mode = 0777
force security mode = 0777
force directory mode = 0777
这两个服务器有什么区别?
答案1
我将所有这些从 Ubuntu 复制到 Fedora,现在它可以工作了:
unix password sync = yes
passwd program = passwd %u
passwd program = /usr/bin/passwd %u
workgroup = WORKGROUP
server string = %h server (Samba, Fedora)
dns proxy = no
syslog = 0
server role = standalone server
obey pam restrictions = yes
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
map to guest = bad user
usershare allow guests = yes