home *** CD-ROM | disk | FTP | other *** search
- # 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 many any basic syntactic errors.
- #
- #======================= Global Settings =====================================
-
- [global]
- workgroup = MYGROUP
- server string = Samba Server
- hosts allow = 192.168.1. 192.168.2. 127.
- printcap name = /etc/printcap
- load printers = yes
- printing = bsd
- guest account = pcguest
- log file = /var/log/samba/log.%m
- max log size = 50
- security = user
- password server = <NT-Server-Name>
- password level = 8
- username level = 8
- encrypt passwords = yes
- smb passwd file = /etc/smbpasswd
- 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/smbusers
- include = /etc/smb.conf.%m
- socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
- interfaces = 192.168.12.2/24 192.168.13.2/24
- remote browse sync = 192.168.3.25 192.168.5.255
- remote announce = 192.168.1.255 192.168.2.44
- local master = no
- os level = 33
- domain master = yes
- preferred master = yes
- domain controller = <NT-Domain-Controller-SMBName>
- domain logons = yes
- logon script = %m.bat
- logon script = %U.bat
- logon path = \\%L\Profiles\%U
- name resolve order = wins lmhosts bcast
- wins support = yes
- wins server = w.x.y.z
- wins proxy = yes
- dns proxy = no
- preserve case = no
- short preserve case = no
- default case = lower
- case sensitive = no
- [homes]
- comment = Home Directories
- browseable = no
- writable = yes
- [netlogon]
- comment = Network Logon Service
- path = /home/netlogon
- guest ok = yes
- writable = no
- share modes = no
- [Profiles]
- path = /home/profiles
- browseable = no
- guest ok = yes
- [printers]
- comment = All Printers
- path = /var/spool/samba
- browseable = no
- guest ok = no
- writable = no
- printable = yes
- [tmp]
- comment = Temporary file space
- path = /tmp
- read only = no
- public = yes
- [public]
- comment = Public Stuff
- path = /home/samba
- public = yes
- writable = yes
- printable = no
- write list = @staff
- [fredsprn]
- comment = Fred's Printer
- valid users = fred
- path = /homes/fred
- printer = freds_printer
- public = no
- writable = no
- printable = yes
- [fredsdir]
- comment = Fred's Service
- path = /usr/somewhere/private
- valid users = fred
- public = no
- writable = yes
- printable = no
- [pchome]
- comment = PC Directories
- path = /usr/pc/%m
- public = no
- writable = yes
- [public]
- path = /usr/somewhere/else/public
- public = yes
- only guest = yes
- writable = yes
- printable = no
- [myshare]
- comment = Mary's and Fred's stuff
- path = /usr/somewhere/shared
- valid users = mary fred
- public = no
- writable = yes
- printable = no
- create mask = 0765
-
-