Система SuSE Linux 11.0
samba настройки SuSE - Primary Domain Controller (PDC)
Samba version 3.2.0rc1-22.1-1795-SUSE-SL11.0
Конфигурационный файл /etc/samba/smb.conf
[root@suse /root]# less /etc/samba/smb.conf # smb.conf is the main Samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the # samba-doc package is installed. # Date: 2008-06-06 [global] workgroup = EIS2 netbios name = BETA2 server string = BETA on SuSE 11.0 # interfaces = lo eth0 10.16.0.0/24 172.18.0.0/16 # interfaces = 10.16.94.0/24 172.18.66.0/24 interfaces = 172.18.66.0/24 10.16.94.0/24 lo # printing = cups # printcap name = cups # printcap cache time = 750 # cups options = raw # security = domain security = user # security = share null passwords = yes guest account = user username map = /etc/samba/smbusers ### + DOMAIN + ### # unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = "*Enter OLD password*" %o\\n "*Enter NEW password*" %n\\n "*Reenter NEW password*" %n\\n "*Password changed*" # passwd chat debug = yes passwd chat timeout = 20 ;; ldap password sync = Yes #; not declared ;; auth methods = ntdomain users guest sam winbind # auth methods = guest ntdomain winbind sam add user script = /usr/sbin/useradd -d /dev/null -s /bin/false %u add user to group script = /usr/sbin/useradd %u %g add group script = /usr/sbin/groupadd %g # add machine script = /usr/sbin/useradd -n -g machines -c Machine -d /dev/null -s /bin/false %u add machine script = /usr/sbin/useradd -g machines -c Machine -d /dev/null -s /bin/false -M %u local master = yes os level = 128 domain master = yes preferred master = yes allow trusted domains = yes time server = yes wins support = yes dns proxy = no # dos charset = CP866 nt acl support = yes protocol = NT1 available = yes browse list = yes admin users = solo # admin users = @admin admin tab923 solo logon script = %U.bat # logon script = %I.bat ### - DOMAIN - ### ## map to guest = Bad User # include = /etc/samba/dhcp.conf logon path = \\%L\profiles\.msprofile logon home = \\%L\%U\.9xprofile logon drive = J: usershare allow guests = Yes # socket options = SO_KEEPALIVE SO_BROADCAST TCP_NODELAY SO_RCVBUF=4096 SO_SNDBUF=4096 [netlogon] comment = Network Logon Service path = /home/samba/netlogon guest ok = yes writable = no read only = Yes share modes = no [homes] comment = Home Directories valid users = %S, %D%w%S browseable = No read only = No inherit acls = Yes [profiles] comment = Network Profiles Service path = %H read only = No store dos attributes = Yes create mask = 0600 directory mask = 0700 [users] comment = All users path = /home read only = No inherit acls = Yes veto files = /aquota.user/groups/shares/ [groups] comment = All groups path = /home/groups read only = No inherit acls = Yes # [printers] # comment = All Printers # path = /var/tmp # printable = Yes # create mask = 0600 # browseable = No # [print$] # comment = Printer Drivers # path = /var/lib/samba/drivers # write list = @ntadmin root # force group = ntadmin # create mask = 0664 # directory mask = 0775 [BETA] comment = BETA area path = /area/BETA public = yes writable = yes printable = no write list = clipper user @users [disk_P] comment = BETA area [disk P] path = /area/BETA/B01/B2/41 public = yes writable = yes printable = no write list = clipper user @users [disk_R] comment = BETA area [disk R] path = /area/BETA/B02 public = yes writable = yes printable = no write list = clipper user @users [disk_S] comment = BETA area [disk S] path = /area/BETA/B02/B3/KASSA public = yes writable = yes printable = no write list = clipper user @users [disk_U] comment = BETA area [disk U] path = /area/BETA/B03 public = yes writable = yes printable = no write list = clipper user @users [disk_V] comment = BETA area [disk V] path = /area/BETA/B01/B1 public = yes writable = yes printable = no write list = clipper user @users [disk_W] comment = BETA area [disk W] path = /area/BETA/B01/B2/43 public = yes writable = yes printable = no write list = clipper user @users