![从 12.04 升级到 14.04 安装 Samba4!共享无法访问](https://linux22.com/image/1049076/%E4%BB%8E%2012.04%20%E5%8D%87%E7%BA%A7%E5%88%B0%2014.04%20%E5%AE%89%E8%A3%85%20Samba4%EF%BC%81%E5%85%B1%E4%BA%AB%E6%97%A0%E6%B3%95%E8%AE%BF%E9%97%AE.png)
所以今天我将我的 ubuntu 服务器版本升级到最新版本,在此过程中它要求我保留 samba 配置文件或升级它。我说一如既往地保留它。
升级完成后,我发现我的共享无法访问,即要求输入密码。检查 Samba 版本时,它显示:Samba 版本 4.1.6-Ubuntu。
smb.conf 文件仍然相同,但我只能使用管理员密码访问共享。网络上的所有其他用户都无法访问共享。请注意,我使用 AD 管理用户/组。
如果我设置 guestok = yes,则所有用户都可以访问共享,但这不是我想要的。
那么,首先,为什么 Samba 升级到 4?如何让域用户像以前一样访问共享?我正在考虑将 Samba4 降级到 Samba3,但我该怎么做呢?
这是我的 smb.conf 文件:
[全球的]
idmap backend = tdb
idmap gid = 10000-20000
idmap uid = 10000-20000
idmap config NPDOMLX : backend = rid
idmap config NPDOMLX : range = 10000 - 20000
obey pam restrictions = yes
dns proxy = no
netbios name = NPLX02
guest ok = yes
load printers = yes
printing = cups
printcap name = cups
workgroup = NPDOMLX
security = ADS
winbind separator = +
max log size = 1000
log file = /var/log/samba/log.%m
socket options = TCP_NODELAY
wins server = 192.168.0.5
map to guest = bad user
domain master = no
encrypt passwords = no
winbind use default domain = yes
realm = NPDOMLX.LOCAL
passdb backend = tdbsam
template shell = /bin/bash
server string = Storage Server
password server = npdc01.npdomlx.local
winbind enum users = yes
path = /var/spool/samba
winbind nested groups = yes
unix password sync = yes
template homedir = /home/%D/%U
winbind enum groups = yes
syslog = 0
panic action = /usr/share/samba/panic-action %d
pam password change = yes