## Ниже пример конфига, с которым самба отлично работала в качестве PDC
## Для добавления машины должен существовать скрипт, к-й на лету добавлял бы аккаунт машины в юзеря - он выделен ниже.
## Этот способ проще чем вручную, правда тормозит при добавлении до минуты
[global]
client code page = 866
update encrypted = no
announce version = 8.0
character set = koi8-u
mangle case = Yes
netbios name = NEWSERVER
workgroup = NEWDOMAIN
## !возможно проблема была тут?
add user script = /usr/sbin/useradd -d /dev/null -g 98 -s /bin/false -M %u
hosts allow = 172.16.8. 127.
printcap name = /etc/printcap
load printers = no
log file = /var/log/samba/log.%m
max log size = 5000
security = user
password level = 8
encrypt passwords = yes
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
include = /etc/samba/smb.conf.%m
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 172.16.8.0/24
local master = yes
os level = 200
domain master = yes
domain logons = yes
logon drive = H:
logon home = \\homeserver\%U
logon path = \\%L\Profiles\%U
name resolve order = wins lmhosts bcast host
wins support = yes
wins proxy = yes
dns proxy = yes
preserve case = yes
short preserve case = no
default case = lower
case sensitive = no
#============================ Share Definitions
[homes]
comment = Home Directories
browseable = no
writable = yes
create mask = 0660
directory mask = 0770
[Усi вiддiли]
path = /home/all/links
write list = ntadmin
writable = yes
read only = no
[groups]
path = /home/all_groups
write list = ntadmin
writable = yes
read only = no
browseable = no
[home]
comment = Домашнi каталоги всiх вiддiлiв
path = /home/all/links
write list = ntadmin
writable = yes
read only = no
create mask = 0660
directory mask = 0770
; share for storing user profiles
[Profiles]
path = /home/all/profiles
browseable = no
read only = no
create mask = 0600
directory mask = 0700
[Incoming]
path = /tmp
public = yes
writable = yes
printable = no