Samba使用AD共享问题

时间:2016-08-11 14:39:03

标签: linux active-directory samba

我在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盒时,我有“访问被拒绝”错误。有人能给我一些指南吗?真的坚持这个

1 个答案:

答案 0 :(得分:0)

尝试添加行

/etc/samba/smb.conf

in

[global]

gulp.task('inject:before', function () { gulp.src('js/**/*.js') .pipe(inject.before('constructor:', '//this is a example comment\n')) .pipe(gulp.dest('./temp')); }); 部分。

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