Difference between revisions of "smb.conf/examples/2006"
Jump to navigation
Jump to search
m (→Example 1: Camilla: using indent instead of pre, to allow for links) |
|||
| Line 2: | Line 2: | ||
==Example 1: Camilla== | ==Example 1: Camilla== | ||
There's probably a lot of garbage that doesn't need to be in here, but this setup basically works for anonymous connections from Win9x machines. I don't think the DNS Proxy parameter did anything, though. | There's probably a lot of garbage that doesn't need to be in here, but this setup basically works for anonymous connections from Win9x machines. I don't think the DNS Proxy parameter did anything, though. | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | # WINS server (2005-05-09) | + | # This is the main Samba configuration file. You should read the |
| − | # Causes Samba to act as WINS server, which turns network names into IP addresses. | + | # smb.conf(5) manual page in order to understand the options listed |
| − | wins support = yes | + | # here. Samba has a huge number of configurable options (perhaps too |
| − | + | # many!) most of which are not shown in this example | |
| − | # workgroup = NT-Domain-Name or Workgroup-Name | + | # |
| − | workgroup = pinecrest | + | # NOTE: Whenever you modify this file you should run the command "testparm" |
| − | # server string is the equivalent of the NT Description field | + | # to check that you have not made any basic syntactic errors. |
| − | server string = Camilla II | + | # |
| − | + | #======================= Global Settings ===================================== | |
| − | # Opportunistic Locking | + | [global] |
| − | # NO reduces performance but prevents flaky Windows apps from corrupting files: | + | message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' & |
| − | # YES allows this file to not generate warnings | + | |
| − | oplocks = yes | + | # WINS server (2005-05-09) |
| − | + | # Causes Samba to act as WINS server, which turns network names into IP addresses. | |
| − | printcap name = /etc/printcap | + | wins support = yes |
| − | + | ||
| − | log file = /var/log/samba/%m.log | + | # workgroup = NT-Domain-Name or Workgroup-Name |
| − | max log size = 50 | + | workgroup = pinecrest |
| − | + | # server string is the equivalent of the NT Description field | |
| − | smb passwd file = /etc/samba/smbpasswd | + | server string = Camilla II |
| − | + | ||
| − | socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 | + | # Opportunistic Locking |
| − | + | # NO reduces performance but prevents flaky Windows apps from corrupting files: | |
| − | local master = yes | + | # YES allows this file to not generate warnings |
| − | + | oplocks = yes | |
| − | # 2006-01-22 Woozle - xlates NetBIOS names to DNS, maybe? | + | |
| − | dns proxy = yes | + | printcap name = /etc/printcap |
| − | # added 2004-08-28 per phealy suggestion | + | |
| − | guest account = sambaguest | + | log file = /var/log/samba/%m.log |
| − | winbind uid = 16777216-33554431 | + | max log size = 50 |
| − | winbind gid = 16777216-33554431 | + | smb passwd file = /etc/samba/[[smbpasswd]] |
| − | password server = None | + | |
| − | guest ok = yes | + | socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 |
| − | security = SHARE | + | |
| − | username map = /etc/samba/smbusers | + | local master = yes |
| − | # pwh added line above | + | |
| − | # added 2006-01-13 per Tenebram suggestion | + | # 2006-01-22 Woozle - xlates NetBIOS names to DNS, maybe? |
| − | force group = lanusers | + | dns proxy = yes |
| − | force create mode = 0060 | + | # added 2004-08-28 per phealy suggestion |
| − | create mask = 0775 | + | guest account = sambaguest |
| − | + | winbind uid = 16777216-33554431 | |
| − | [homes] | + | winbind gid = 16777216-33554431 |
| − | comment = Home Directories | + | password server = None |
| − | read only = no | + | guest ok = yes |
| − | path = /home | + | security = SHARE |
| − | + | username map = /etc/samba/[[smbusers]] | |
| − | # NOTE: If you have a BSD-style print system there is no need to | + | # pwh added line above |
| − | # specifically define each individual printer | + | # added 2006-01-13 per Tenebram suggestion |
| − | [printers] | + | force group = lanusers |
| − | comment = All Printers | + | force create mode = 0060 |
| − | path = /var/spool/samba | + | create mask = 0775 |
| − | # Set public = yes to allow user 'guest account' to print | + | |
| − | printable = yes | + | [homes] |
| − | + | comment = Home Directories | |
| − | [Files] | + | read only = no |
| − | comment = File system, read-only | + | path = /home |
| − | path = / | + | |
| − | available = yes | + | # NOTE: If you have a BSD-style print system there is no need to |
| − | browseable = yes | + | # specifically define each individual printer |
| − | guest ok = no | + | [printers] |
| − | + | comment = All Printers | |
| − | [Public] | + | path = /var/spool/samba |
| − | path = /usr/netpublic | + | # Set public = yes to allow user 'guest account' to print |
| − | read only = no | + | printable = yes |
| − | case sensitive = no | + | |
| − | msdfs proxy = no | + | [Files] |
| − | map archive = no | + | comment = File system, read-only |
| − | #create mask = 0774 | + | path = / |
| − | #directory mask = 0775 | + | available = yes |
| − | # allows samba to show/include symbolic-linked folders and files: | + | browseable = yes |
| − | follow symlinks = yes | + | guest ok = no |
| − | # allows links to targets not within the shared folder | + | |
| − | wide links = yes | + | [Public] |
| − | # allows e.g. ".htaccess" to be seen | + | path = /usr/netpublic |
| − | hide dot files = no | + | read only = no |
| − | + | case sensitive = no | |
| − | [STUFF] | + | msdfs proxy = no |
| − | path = /home/woozle/stuff | + | map archive = no |
| − | available = yes | + | #create mask = 0774 |
| − | read only = no | + | #directory mask = 0775 |
| − | case sensitive = no | + | # allows samba to show/include symbolic-linked folders and files: |
| − | msdfs proxy = no | + | follow symlinks = yes |
| − | comment = and things | + | # allows links to targets not within the shared folder |
| − | # allows samba to show/include symbolic-linked folders and files: | + | wide links = yes |
| − | follow symlinks = yes | + | # allows e.g. ".htaccess" to be seen |
| − | # allows links to targets not within the shared folder | + | hide dot files = no |
| − | wide links = yes | + | |
| − | # allows e.g. ".htaccess" to be seen | + | [STUFF] |
| − | hide dot files = no | + | path = /home/woozle/stuff |
| − | # creates files as writable by group | + | available = yes |
| − | #force create mode = 666 | + | read only = no |
| − | + | case sensitive = no | |
| + | msdfs proxy = no | ||
| + | comment = and things | ||
| + | # allows samba to show/include symbolic-linked folders and files: | ||
| + | follow symlinks = yes | ||
| + | # allows links to targets not within the shared folder | ||
| + | wide links = yes | ||
| + | # allows e.g. ".htaccess" to be seen | ||
| + | hide dot files = no | ||
| + | # creates files as writable by group | ||
| + | #force create mode = 666 | ||
Revision as of 16:16, 31 January 2006
Computing: Linux: Samba: smb.conf: examples
Example 1: Camilla
There's probably a lot of garbage that doesn't need to be in here, but this setup basically works for anonymous connections from Win9x machines. I don't think the DNS Proxy parameter did anything, though.
# 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 # # 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] message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' & # WINS server (2005-05-09) # Causes Samba to act as WINS server, which turns network names into IP addresses. wins support = yes # workgroup = NT-Domain-Name or Workgroup-Name workgroup = pinecrest # server string is the equivalent of the NT Description field server string = Camilla II # Opportunistic Locking # NO reduces performance but prevents flaky Windows apps from corrupting files: # YES allows this file to not generate warnings oplocks = yes printcap name = /etc/printcap log file = /var/log/samba/%m.log max log size = 50 smb passwd file = /etc/samba/smbpasswd socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 local master = yes # 2006-01-22 Woozle - xlates NetBIOS names to DNS, maybe? dns proxy = yes # added 2004-08-28 per phealy suggestion guest account = sambaguest winbind uid = 16777216-33554431 winbind gid = 16777216-33554431 password server = None guest ok = yes security = SHARE username map = /etc/samba/smbusers # pwh added line above # added 2006-01-13 per Tenebram suggestion force group = lanusers force create mode = 0060 create mask = 0775 [homes] comment = Home Directories read only = no path = /home # NOTE: If you have a BSD-style print system there is no need to # specifically define each individual printer [printers] comment = All Printers path = /var/spool/samba # Set public = yes to allow user 'guest account' to print printable = yes [Files] comment = File system, read-only path = / available = yes browseable = yes guest ok = no [Public] path = /usr/netpublic read only = no case sensitive = no msdfs proxy = no map archive = no #create mask = 0774 #directory mask = 0775 # allows samba to show/include symbolic-linked folders and files: follow symlinks = yes # allows links to targets not within the shared folder wide links = yes # allows e.g. ".htaccess" to be seen hide dot files = no [STUFF] path = /home/woozle/stuff available = yes read only = no case sensitive = no msdfs proxy = no comment = and things # allows samba to show/include symbolic-linked folders and files: follow symlinks = yes # allows links to targets not within the shared folder wide links = yes # allows e.g. ".htaccess" to be seen hide dot files = no # creates files as writable by group #force create mode = 666