~ubuntu-branches/ubuntu/gutsy/samba/gutsy-updates

« back to all changes in this revision

Viewing changes to packaging/Solaris/smb.conf.default

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2006-11-28 20:14:37 UTC
  • mfrom: (0.10.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061128201437-a6x4lzlhempazocp
Tags: 3.0.23d-1ubuntu1
* Merge from debian unstable.
* Drop python2.4-samba, replace with python-samba. Added Conflicts/Replaces
  on python2.4-samba
* Drop track-connection-dos.patch, ubuntu-winbind-panic.patch, 
  ubuntu-fix-ldap.patch, ubuntu-setlocale.patch, ubuntu-setlocale-fixes.patch
* Remaining Ubuntu changes:
  - Revert Debian's installation of mount.cifs and umount.cifs as suid
  - Comment out the default [homes] shares and add more verbose comments to
    explain what they do and how they work (closes: launchpad.net/27608)
  - Add a "valid users = %S" stanza to the commented-out [homes] section, to
    show users how to restrict access to \\server\username to only username.
  - Change the (commented-out) "printer admin" example to use "@lpadmin"
    instead of "@ntadmin", since the lpadmin group is used for spool admin.
  - Alter the panic-action script to encourage users to report their
    bugs in Ubuntu packages to Ubuntu, rather than reporting to Debian.
    Modify text to more closely match the Debian script
  - Munge our init script to deal with the fact that our implementation
    (or lack thereof) of log_daemon_msg and log_progress_msg differs
    from Debian's implementation of the same (Ubuntu #19691)
  - Kept ubuntu-auxsrc.patch: some auxilliary sources (undocumented in 
    previous changelogs)
  - Set default workgroup to MSHOME

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# here. Samba has a huge number of configurable options (perhaps too
4
4
# many!) most of which are not shown in this example
5
5
#
 
6
# For a step to step guide on installing, configuring and using samba, 
 
7
# read the Samba-HOWTO-Collection. This may be obtained from:
 
8
#  http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
 
9
#
 
10
# Many working examples of smb.conf files can be found in the 
 
11
# Samba-Guide which is generated daily and can be downloaded from: 
 
12
#  http://www.samba.org/samba/docs/Samba-Guide.pdf
 
13
#
6
14
# Any line which starts with a ; (semi-colon) or a # (hash) 
7
15
# is a comment and is ignored. In this example we will use a #
8
16
# for commentry and a ; for parts of the config file that you
14
22
#======================= Global Settings =====================================
15
23
[global]
16
24
 
17
 
# workgroup = NT-Domain-Name or Workgroup-Name
 
25
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
18
26
   workgroup = MYGROUP
19
27
 
20
28
# server string is the equivalent of the NT Description field
21
29
   server string = Samba Server
22
30
 
 
31
# Security mode. Defines in which mode Samba will operate. Possible 
 
32
# values are share, user, server, domain and ads. Most people will want 
 
33
# user level security. See the Samba-HOWTO-Collection for details.
 
34
   security = user
 
35
 
23
36
# This option is important for security. It allows you to restrict
24
37
# connections to machines which are on your local network. The
25
38
# following example restricts access to two C class networks and
27
40
# the smb.conf man page
28
41
;   hosts allow = 192.168.1. 192.168.2. 127.
29
42
 
30
 
# if you want to automatically load your printer list rather
 
43
# If you want to automatically load your printer list rather
31
44
# than setting them up individually then you'll need this
32
 
   printcap name = /etc/printcap
33
45
   load printers = yes
34
46
 
35
 
# It should not be necessary to spell out the print system type unless
36
 
# yours is non-standard. Currently supported print systems include:
37
 
# bsd, sysv, plp, lprng, aix, hpux, qnx
38
 
;   printing = bsd
 
47
# you may wish to override the location of the printcap file
 
48
;   printcap name = /etc/printcap
 
49
 
 
50
# on SystemV system setting printcap name to lpstat should allow
 
51
# you to automatically obtain a printer list from the SystemV spool
 
52
# system
 
53
;   printcap name = lpstat
 
54
 
 
55
# It should not be necessary to specify the print system type unless
 
56
# it is non-standard. Currently supported print systems include:
 
57
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx
 
58
;   printing = cups
39
59
 
40
60
# Uncomment this if you want a guest account, you must add this to /etc/passwd
41
61
# otherwise the user "nobody" is used
43
63
 
44
64
# this tells Samba to use a separate log file for each machine
45
65
# that connects
46
 
   # log file = /var/log/samba/log.%m
47
 
# all log information in one file
48
 
   log file = /var/log/samba/smbd.log
 
66
   log file = /usr/local/samba/var/log.%m
49
67
 
50
68
# Put a capping on the size of the log files (in Kb).
51
69
   max log size = 50
52
70
 
53
 
# Security mode. Most people will want user level security. See
54
 
# security_level.txt for details.
55
 
   security = user
56
71
# Use password server option only with security = server
 
72
# The argument list may include:
 
73
#   password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
 
74
# or to auto-locate the domain controller/s
 
75
#   password server = *
57
76
;   password server = <NT-Server-Name>
58
77
 
59
 
# Password Level allows matching of _n_ characters of the password for
60
 
# all combinations of upper and lower case.
61
 
;  password level = 8
62
 
;  username level = 8
63
 
 
64
 
# You may wish to use password encryption. Please read
65
 
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
66
 
# Do not enable this option unless you have read those documents
67
 
;  encrypt passwords = yes
68
 
;  smb passwd file = /etc/samba/smbpasswd
69
 
 
70
 
# The following are needed to allow password changing from Windows to
71
 
# update the Linux system password also.
72
 
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
73
 
# NOTE2: You do NOT need these to allow workstations to change only
74
 
#        the encrypted SMB passwords. They allow the Unix password
75
 
#        to be kept in sync with the SMB password.
76
 
;  unix password sync = Yes
77
 
;  passwd program = /usr/bin/passwd %u
78
 
;  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
79
 
 
80
 
# Unix users can map to different SMB User names
81
 
;  username map = /etc/samba/smbusers
 
78
# Use the realm option only with security = ads
 
79
# Specifies the Active Directory realm the host is part of
 
80
;   realm = MY_REALM
 
81
 
 
82
# Backend to store user information in. New installations should 
 
83
# use either tdbsam or ldapsam. smbpasswd is available for backwards 
 
84
# compatibility. tdbsam requires no further configuration.
 
85
;   passdb backend = tdbsam
82
86
 
83
87
# Using the following line enables you to customise your configuration
84
88
# on a per machine basis. The %m gets replaced with the netbios name
85
 
# of the machine that is connecting
86
 
;   include = /etc/samba/smb.conf.%m
87
 
 
88
 
# Most people will find that this option gives better performance.
89
 
# See speed.txt and the manual pages for details
90
 
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 
89
# of the machine that is connecting.
 
90
# Note: Consider carefully the location in the configuration file of
 
91
#       this line.  The included file is read at that point.
 
92
;   include = /usr/local/samba/lib/smb.conf.%m
91
93
 
92
94
# Configure Samba to use multiple interfaces
93
95
# If you have multiple network interfaces then you must list them
94
96
# here. See the man page for details.
95
97
;   interfaces = 192.168.12.2/24 192.168.13.2/24 
96
98
 
97
 
# Configure remote browse list synchronisation here
98
 
#  request announcement to, or browse list sync from:
99
 
#       a specific host or from / to a whole subnet (see below)
100
 
;   remote browse sync = 192.168.3.25 192.168.5.255
101
 
# Cause this host to announce itself to local subnets here
102
 
;   remote announce = 192.168.1.255 192.168.2.44
103
 
 
104
99
# Browser Control Options:
105
100
# set local master to no if you don't want Samba to become a master
106
101
# browser on your network. Otherwise the normal election rules apply
135
130
#        You must uncomment the [Profiles] share below
136
131
;   logon path = \\%L\Profiles\%U
137
132
 
138
 
# All NetBIOS names must be resolved to IP Addresses
139
 
# 'Name Resolve Order' allows the named resolution mechanism to be specified
140
 
# the default order is "host lmhosts wins bcast". "host" means use the unix
141
 
# system gethostbyname() function call that will use either /etc/hosts OR
142
 
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
143
 
# and the /etc/resolv.conf file. "host" therefore is system configuration
144
 
# dependant. This parameter is most often of use to prevent DNS lookups
145
 
# in order to resolve NetBIOS names to IP Addresses. Use with care!
146
 
# The example below excludes use of name resolution for machines that are NOT
147
 
# on the local network segment
148
 
# - OR - are not deliberately to be known via lmhosts or via WINS.
149
 
; name resolve order = wins lmhosts bcast
150
 
 
151
133
# Windows Internet Name Serving Support Section:
152
134
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
153
135
;   wins support = yes
162
144
;   wins proxy = yes
163
145
 
164
146
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
165
 
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
166
 
# this has been changed in version 1.9.18 to no.
 
147
# via DNS nslookups. The default is NO.
167
148
   dns proxy = no 
168
149
 
169
 
# Case Preservation can be handy - system default is _no_
170
 
# NOTE: These can be set on a per share basis
171
 
;  preserve case = no
172
 
;  short preserve case = no
173
 
# Default case is normally upper case for all DOS files
174
 
;  default case = lower
175
 
# Be very careful with case sensitivity - it can break things!
176
 
;  case sensitive = no
 
150
# These scripts are used on a domain controller or stand-alone 
 
151
# machine to add or delete corresponding unix accounts
 
152
;  add user script = /usr/sbin/useradd %u
 
153
;  add group script = /usr/sbin/groupadd %g
 
154
;  add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
 
155
;  delete user script = /usr/sbin/userdel %u
 
156
;  delete user from group script = /usr/sbin/deluser %u %g
 
157
;  delete group script = /usr/sbin/groupdel %g
 
158
 
177
159
 
178
160
#============================ Share Definitions ==============================
179
161
[homes]
184
166
# Un-comment the following and create the netlogon directory for Domain Logons
185
167
; [netlogon]
186
168
;   comment = Network Logon Service
187
 
;   path = /home/netlogon
 
169
;   path = /usr/local/samba/lib/netlogon
188
170
;   guest ok = yes
189
171
;   writable = no
190
172
;   share modes = no
193
175
# Un-comment the following to provide a specific roving profile share
194
176
# the default is to use the user's home directory
195
177
;[Profiles]
196
 
;    path = /home/profiles
 
178
;    path = /usr/local/samba/profiles
197
179
;    browseable = no
198
180
;    guest ok = yes
199
181
 
202
184
# specifically define each individual printer
203
185
[printers]
204
186
   comment = All Printers
205
 
   path = /var/spool/samba
 
187
   path = /usr/spool/samba
206
188
   browseable = no
207
189
# Set public = yes to allow user 'guest account' to print
208
190
   guest ok = no
222
204
;   comment = Public Stuff
223
205
;   path = /home/samba
224
206
;   public = yes
225
 
;   read only = yes
 
207
;   writable = yes
 
208
;   printable = no
226
209
;   write list = @staff
227
210
 
228
211
# Other examples. 
251
234
 
252
235
# a service which has a different directory for each machine that connects
253
236
# this allows you to tailor configurations to incoming machines. You could
254
 
# also use the %u option to tailor it by user name.
 
237
# also use the %U option to tailor it by user name.
255
238
# The %m gets replaced with the machine name that is connecting.
256
239
;[pchome]
257
240
;  comment = PC Directories