Добрый день!
Пытаюсь скрестить ежа и ужа - нужно чтобы поддерживались шары с авторизация как локальных пользователей, так и с AD. В зависимости от конфиги работает или то, или это. Может кто встречался с подобной ерундовиной?)
И еще - не работает шара по IP адресу, когда самба юзает конфигу, где она в домене. Кто знает в чем мб дело?Когда рабочая группа:
[global]
workgroup = smb
dos charset = CP866
unix charset = KOI8-R
display charset = UTF-8
server string = Samba Server
encrypt passwords = True
security = user
smb passwd file = /etc/smbpasswd
min protocol = NT1
log file = /var/log/samba/log.%m
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
domain master = no
local master = no
preferred master = no
os level = 33
dns proxy = No
bind interfaces only = True
debug level = 1
create mask = 0644
directory mask = 0775
level2 oplocks = True
read raw = no
show add printer wizard = no
load printers = no
printcap name = /dev/null
printing = bsd
[test]
comment = Directory for backup
path = /home/store
read only = no
public = yes
write list = wwwwwww
read list = rrrrrrr
printable = no
create mask = 0750
invalid users = root bin daemon nobody named sys tty disk mem kmem users
Когда в домене:
[global]
workgroup = xxxx
server string = File Server on Win9x
security = ADS
realm = xxxx
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
auth methods = winbind
hosts allow = 10.200., 127.
socket options = TCP_NODELAY
local master = no
os level = 33
domain master = no
preferred master = no
wins support = no
wins proxy = no
dns proxy = no
dos charset = CP866
unix charset = KOI8-R
display charset = KOI8-R
show add printer wizard = no
load printers = no
printcap name = /dev/null
printing = bsd
[Testdir]
comment = Users Area
path = /home/Testdir
browseable = yes
public = yes
writable = yes
valid users = @"xxxx\_all"
write list = @"xxxx\_all"
directory mask = 0700
create mask = 0600
nt acl support = yes
inherit permissions = yes
map acl inherit = yes
[test]
comment = Directory for backup
path = /home/store
read only = no
public = yes
browseable = yes
write list = wwwww
read list = rrrrr
printable = no
create mask = 0750
directory mask = 0775
invalid users = root bin daemon nobody named sys tty disk mem kmem users