繁体   English   中英

Samba使用AD共享问题

[英]Samba Share problems using AD

我在Windows Server Enterprise 2008 R2中有AD支配。 域名是ferreiradias.local我已经安装了一个xubuntu盒16.04并完成了所有更新。 我已经安装了samba,winbind和krb5-client以及ntp并对它们进行了配置。 krb5.conf的:

[libdefaults]
ticket_lifetime = 24h
default_realm = FERREIRADIAS.LOCAL
forwardable = true
dns_lookup_realm = true
dns_lookup_kdc = true
[realms]
FERREIRADIAS.LOCAL = {
kdc = 192.168.1.3:88
admin_server = DC-FD.FERREIRADIAS.LOCAL
default_domain = FERREIRADIAS.LOCAL
}
[domain_realm]
.FERREIRADIAS.LOCAL = FERREIRADIAS.LOCAL
FERREIRADIAS.LOCAL = FERREIRADIAS.LOCAL
.ferreiradias.local = FERREIRADIAS.LOCAL
ferreiradias.local = FERREIRADIAS.LOCAL
[kdc]
profile = /etc/krb5kdc/kdc.conf
[appdefaults]
pam = {
debug = false
ticket_lifetime = 36000
renew_lifetime = 36000
forwardable = true
krb4_convert = false
}
[logging]
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmin.log
default = FILE:/var/log/krb5lib.log

nssswitch.conf

passwd:         files winbind
group:          files winbind
shadow:         files winbind

主机名

nas1

主机

127.0.0.1   localhost
127.0.1.1   nas1.ferreiradias.local nas1.ferreiradias nas1

我可以将linux盒子添加到AD中。 一切都还好,直到那一刻。

smb.conf文件

[global]
security = ADS
realm = FERREIRADIAS.LOCAL
password server = 192.168.1.3
workgroup = ferreiradias
idmap config * : range = 10000-20000
server string = Linuxserver
winbind enum users = yes
winbind enum groups = yes
winbind cache time = 10
winbind use default domain = yes
winbind nested groups = yes
template homedir = /home/%U
template shell = /bin/bash
client use spnego = yes
ntlm auth = yes
lanman auth = no
client ntlmv2 auth = yes
encrypt passwords = yes
restrict anonymous = 2
domain master = no
local master = no
preferred master = no
os level = 0
map to guest = bad user
guest account = nobody
unix extensions = yes

[partilha1]
comment = Marketing
path = /sharing/
valid users =@FERREIRADIAS\jorgcar
writable = yes
read only = no
force create mode = 0777
create mask = 0777
directory mask = 0777
force directory mode = 0777
access based share enum = yes
hide unreadable = yes

问题是当我尝试通过Windows 10/7访问Linux机器时,我有“访问被拒绝”错误。 有人能给我一些指南吗? 真的坚持这个

尝试添加该行

client max protocol = SMB3

/etc/samba/smb.conf

[global]部分。

也许你的samba版本不受支持。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM