# This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command "testparm" # to check that you have not made any basic syntactic errors. # #======================= Global Settings ===================================== [global] encrypt passwords = Yes smb passwd file = /etc/samba/smbpasswd dos charset = CP866 unix charset = KOI8-R workgroup = finupr netbios name = old server string = Сервер interfaces = 192.168.1.104 unix password sync = Yes log level = 3 log file = /var/log/samba/log.%m max log size = 500 time server = Yes add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u logon script = logon.bat logon path = \\%L\profiles\%u\%m logon drive = H: logon home = \\%L\%u\.win_profile\%m domain logons = Yes os level = 64 preferred master = Yes domain master = Yes local master = Yes security = user passwd program = /usr/bin/passwd %u passwd chat = *NEW*UNIX*password* %n\n *ReType*new*UNIX*password [homes] comment = Home Directories invalid users = root read only = No create mask = 0644 browsable = No guest ok = No map archive = Yes [netlogon] path = /var/lib/samba/netlogon browsable = No writable = No [Profiles] path = /home/samba-ntprof browsable = no read only = No writable = Yes create mask = 0600 directory mask = 0700