作業系統:CENTOS7
請問我是哪裡有寫錯嗎
主要目的:分享的資料夾兩個網域都要能進去
[global]
workgroup = 123
password server = AD2.123.com.tw
realm = 123.COM.TW
security = ads
idmap config * : range = 16777216-33554431
template shell = /bin/false
kerberos method = secrets only
winbind use default domain = false
winbind offline logon = false
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
domain master = no
encrypt passwords = yes
use sendfile = yes
map to guest = Bad User
#WINDOWS本機帳號OK ,123網域帳號OK ,其餘網域帳號NG
[alex]
path = /mnt/B/SMB/alex
writable = yes
guest ok = yes
create mask = 0777
directory mask = 0777
#WINDOWS電腦使用 AD帳號 OK
[alex]
path = /mnt/B/SMB/alex
valid users = 123\user
write list = 123\user
create mask = 0777
directory mask = 0777
#WINDOWS電腦使用CENTOS本機root帳號 NG
[alex]
path = /mnt/B/SMB/alex
valid users = root
write list = root
create mask = 0777
directory mask = 0777