annotate Lib/test/cfgparser.2 @ 78069:a8aa77458e12 3.2

Add c_size_t and c_ssize_t to the ctypes summary table.
author Antoine Pitrou <solipsis@pitrou.net>
date Thu, 12 Jul 2012 20:31:50 +0200
parents 79e376824b38
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
63274
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
1 # This is the main Samba configuration file. You should read the
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
2 # smb.conf(5) manual page in order to understand the options listed
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
3 # here. Samba has a huge number of configurable options (perhaps too
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
4 # many!) most of which are not shown in this example
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
5 #
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
6 # Any line which starts with a ; (semi-colon) or a # (hash)
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
7 # is a comment and is ignored. In this example we will use a #
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
8 # for commentry and a ; for parts of the config file that you
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
9 # may wish to enable
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
10 #
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
11 # NOTE: Whenever you modify this file you should run the command #"testparm" # to check that you have not made any basic syntactic #errors.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
12 #
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
13 #======================= Global Settings =====================================
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
14 [global]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
15
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
16 # 1. Server Naming Options:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
17 # workgroup = NT-Domain-Name or Workgroup-Name
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
18
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
19 workgroup = MDKGROUP
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
20
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
21 # netbios name is the name you will see in "Network Neighbourhood",
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
22 # but defaults to your hostname
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
23
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
24 ; netbios name = <name_of_this_server>
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
25
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
26 # server string is the equivalent of the NT Description field
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
27
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
28 server string = Samba Server %v
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
29
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
30 # Message command is run by samba when a "popup" message is sent to it.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
31 # The example below is for use with LinPopUp:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
32 ; message command = /usr/bin/linpopup "%f" "%m" %s; rm %s
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
33
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
34 # 2. Printing Options:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
35 # CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
36 # (as cups is now used in linux-mandrake 7.2 by default)
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
37 # if you want to automatically load your printer list rather
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
38 # than setting them up individually then you'll need this
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
39
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
40 printcap name = lpstat
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
41 load printers = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
42
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
43 # It should not be necessary to spell out the print system type unless
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
44 # yours is non-standard. Currently supported print systems include:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
45 # bsd, sysv, plp, lprng, aix, hpux, qnx, cups
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
46
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
47 printing = cups
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
48
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
49 # Samba 2.2 supports the Windows NT-style point-and-print feature. To
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
50 # use this, you need to be able to upload print drivers to the samba
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
51 # server. The printer admins (or root) may install drivers onto samba.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
52 # Note that this feature uses the print$ share, so you will need to
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
53 # enable it below.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
54 # This parameter works like domain admin group:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
55 # printer admin = @<group> <user>
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
56 ; printer admin = @adm
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
57 # This should work well for winbind:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
58 ; printer admin = @"Domain Admins"
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
59
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
60 # 3. Logging Options:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
61 # this tells Samba to use a separate log file for each machine
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
62 # that connects
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
63
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
64 log file = /var/log/samba/log.%m
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
65
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
66 # Put a capping on the size of the log files (in Kb).
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
67 max log size = 50
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
68
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
69 # Set the log (verbosity) level (0 <= log level <= 10)
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
70 ; log level = 3
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
71
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
72 # 4. Security and Domain Membership Options:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
73 # This option is important for security. It allows you to restrict
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
74 # connections to machines which are on your local network. The
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
75 # following example restricts access to two C class networks and
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
76 # the "loopback" interface. For more examples of the syntax see
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
77 # the smb.conf man page. Do not enable this if (tcp/ip) name resolution #does
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
78 # not work for all the hosts in your network.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
79 ; hosts allow = 192.168.1. 192.168.2. 127.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
80
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
81 hosts allow = 127. //note this is only my private IP address
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
82
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
83 # Uncomment this if you want a guest account, you must add this to
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
84 # /etc/passwd
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
85 # otherwise the user "nobody" is used
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
86 ; guest account = pcguest
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
87
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
88 # Security mode. Most people will want user level security. See
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
89 # security_level.txt for details.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
90
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
91 security = user
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
92
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
93 # Use password server option only with security = server or security = # domain
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
94 # When using security = domain, you should use password server = *
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
95 ; password server =
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
96 ; password server = *
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
97
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
98 # Password Level allows matching of _n_ characters of the password for
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
99 # all combinations of upper and lower case.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
100
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
101 password level = 8
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
102
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
103 ; username level = 8
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
104
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
105 # You may wish to use password encryption. Please read
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
106 # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
107 # Do not enable this option unless you have read those documents
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
108 # Encrypted passwords are required for any use of samba in a Windows NT #domain
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
109 # The smbpasswd file is only required by a server doing authentication, #thus members of a domain do not need one.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
110
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
111 encrypt passwords = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
112 smb passwd file = /etc/samba/smbpasswd
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
113
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
114 # The following are needed to allow password changing from Windows to
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
115 # also update the Linux system password.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
116 # NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
117 # NOTE2: You do NOT need these to allow workstations to change only
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
118 # the encrypted SMB passwords. They allow the Unix password
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
119 # to be kept in sync with the SMB password.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
120 ; unix password sync = Yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
121 # You either need to setup a passwd program and passwd chat, or
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
122 # enable pam password change
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
123 ; pam password change = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
124 ; passwd program = /usr/bin/passwd %u
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
125 ; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password*
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
126 # %n\n
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
127 ;*passwd:*all*authentication*tokens*updated*successfully*
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
128
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
129 # Unix users can map to different SMB User names
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
130 ; username map = /etc/samba/smbusers
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
131
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
132 # Using the following line enables you to customise your configuration
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
133 # on a per machine basis. The %m gets replaced with the netbios name
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
134 # of the machine that is connecting
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
135 ; include = /etc/samba/smb.conf.%m
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
136
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
137 # Options for using winbind. Winbind allows you to do all account and
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
138 # authentication from a Windows or samba domain controller, creating
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
139 # accounts on the fly, and maintaining a mapping of Windows RIDs to
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
140 # unix uid's
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
141 # and gid's. winbind uid and winbind gid are the only required
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
142 # parameters.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
143 #
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
144 # winbind uid is the range of uid's winbind can use when mapping RIDs #to uid's
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
145 ; winbind uid = 10000-20000
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
146 #
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
147 # winbind gid is the range of uid's winbind can use when mapping RIDs
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
148 # to gid's
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
149 ; winbind gid = 10000-20000
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
150 #
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
151 # winbind separator is the character a user must use between their
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
152 # domain name and username, defaults to "\"
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
153 ; winbind separator = +
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
154 #
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
155 # winbind use default domain allows you to have winbind return
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
156 # usernames in the form user instead of DOMAIN+user for the domain
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
157 # listed in the workgroup parameter.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
158 ; winbind use default domain = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
159 #
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
160 # template homedir determines the home directory for winbind users,
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
161 # with %D expanding to their domain name and %U expanding to their
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
162 # username:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
163 ; template homedir = /home/%D/%U
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
164
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
165 # When using winbind, you may want to have samba create home
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
166 # directories on the fly for authenticated users. Ensure that
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
167 # /etc/pam.d/samba is using 'service=system-auth-winbind' in pam_stack
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
168 # modules, and then enable obedience of pam restrictions below:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
169 ; obey pam restrictions = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
170
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
171 #
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
172 # template shell determines the shell users authenticated by winbind #get
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
173 ; template shell = /bin/bash
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
174
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
175 # 5. Browser Control and Networking Options:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
176 # Most people will find that this option gives better performance.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
177 # See speed.txt and the manual pages for details
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
178
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
179 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
180
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
181 # Configure Samba to use multiple interfaces
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
182 # If you have multiple network interfaces then you must list them
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
183 # here. See the man page for details.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
184 ; interfaces = 192.168.12.2/24 192.168.13.2/24
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
185
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
186 # Configure remote browse list synchronisation here
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
187 # request announcement to, or browse list sync from:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
188 # a specific host or from / to a whole subnet (see below)
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
189 ; remote browse sync = 192.168.3.25 192.168.5.255
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
190 # Cause this host to announce itself to local subnets here
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
191 ; remote announce = 192.168.1.255 192.168.2.44
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
192
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
193 # set local master to no if you don't want Samba to become a master
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
194 # browser on your network. Otherwise the normal election rules apply
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
195 ; local master = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
196
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
197 # OS Level determines the precedence of this server in master browser
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
198 # elections. The default value should be reasonable
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
199 ; os level = 33
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
200
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
201 # Domain Master specifies Samba to be the Domain Master Browser. This
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
202 # allows Samba to collate browse lists between subnets. Don't use this
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
203 # if you already have a Windows NT domain controller doing this job
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
204 ; domain master = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
205
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
206 # Preferred Master causes Samba to force a local browser election on
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
207 # startup and gives it a slightly higher chance of winning the election
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
208 ; preferred master = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
209
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
210 # 6. Domain Control Options:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
211 # Enable this if you want Samba to be a domain logon server for
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
212 # Windows95 workstations or Primary Domain Controller for WinNT and
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
213 # Win2k
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
214
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
215 ; domain logons = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
216
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
217
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
218 # if you enable domain logons then you may want a per-machine or
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
219 # per user logon script
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
220 # run a specific logon batch file per workstation (machine)
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
221 ; logon script = %m.bat
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
222 # run a specific logon batch file per username
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
223 ; logon script = %U.bat
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
224
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
225 # Where to store roaming profiles for WinNT and Win2k
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
226 # %L substitutes for this servers netbios name, %U is username
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
227 # You must uncomment the [Profiles] share below
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
228 ; logon path = \\%L\Profiles\%U
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
229
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
230 # Where to store roaming profiles for Win9x. Be careful with this as it
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
231 # also impacts where Win2k finds it's /HOME share
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
232 ; logon home = \\%L\%U\.profile
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
233
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
234 # The add user script is used by a domain member to add local user
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
235 # accounts that have been authenticated by the domain controller, or by
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
236 # the domain controller to add local machine accounts when adding
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
237 # machines to the domain.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
238 # The script must work from the command line when replacing the macros,
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
239 # or the operation will fail. Check that groups exist if forcing a
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
240 # group.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
241 # Script for domain controller for adding machines:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
242 ; add user script = /usr/sbin/useradd -d /dev/null -g machines –c
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
243 # 'Machine Account' -s /bin/false -M %u
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
244 # Script for domain controller with LDAP backend for adding machines
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
245 #(please
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
246 # configure in /etc/samba/smbldap_conf.pm first):
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
247 ; add user script = /usr/share/samba/scripts/smbldap-useradd.pl -w –d
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
248 # /dev/null -g machines -c 'Machine Account' -s /bin/false %u
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
249 # Script for domain member for adding local accounts for authenticated
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
250 # users:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
251 ; add user script = /usr/sbin/useradd -s /bin/false %u
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
252
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
253 # Domain groups:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
254 # domain admin group is a list of unix users or groups who are made
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
255 # members
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
256 # of the Domain Admin group
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
257 ; domain admin group = root @wheel
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
258 #
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
259 # domain guest groups is a list of unix users or groups who are made
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
260 # members
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
261 # of the Domain Guests group
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
262 ; domain guest group = nobody @guest
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
263
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
264 # LDAP configuration for Domain Controlling:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
265 # The account (dn) that samba uses to access the LDAP server
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
266 # This account needs to have write access to the LDAP tree
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
267 # You will need to give samba the password for this dn, by
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
268 # running 'smbpasswd -w mypassword'
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
269 ; ldap admin dn = cn=root,dc=mydomain,dc=com
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
270 ; ldap ssl = start_tls
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
271 # start_tls should run on 389, but samba defaults incorrectly to 636
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
272 ; ldap port = 389
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
273 ; ldap suffix = dc=mydomain,dc=com
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
274 ; ldap server = ldap.mydomain.com
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
275
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
276
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
277 # 7. Name Resolution Options:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
278 # All NetBIOS names must be resolved to IP Addresses
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
279 # 'Name Resolve Order' allows the named resolution mechanism to be
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
280 # specified the default order is "host lmhosts wins bcast". "host"
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
281 # means use the unix system gethostbyname() function call that will use
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
282 # either /etc/hosts OR DNS or NIS depending on the settings of
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
283 # /etc/host.config, /etc/nsswitch.conf
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
284 # and the /etc/resolv.conf file. "host" therefore is system
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
285 # configuration dependant. This parameter is most often of use to
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
286 # prevent DNS lookups
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
287 # in order to resolve NetBIOS names to IP Addresses. Use with care!
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
288 # The example below excludes use of name resolution for machines that
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
289 # are NOT on the local network segment - OR - are not deliberately to
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
290 # be known via lmhosts or via WINS.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
291 ; name resolve order = wins lmhosts bcast
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
292
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
293 # Windows Internet Name Serving Support Section:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
294 # WINS Support - Tells the NMBD component of Samba to enable it's WINS
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
295 # Server
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
296 ; wins support = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
297
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
298 # WINS Server - Tells the NMBD components of Samba to be a WINS Client
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
299 # Note: Samba can be either a WINS Server, or a WINS Client, but
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
300 # NOT both
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
301 ; wins server = w.x.y.z
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
302
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
303 # WINS Proxy - Tells Samba to answer name resolution queries on
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
304 # behalf of a non WINS capable client, for this to work there must be
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
305 # at least one WINS Server on the network. The default is NO.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
306 ; wins proxy = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
307
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
308 # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
309 # names via DNS nslookups. The built-in default for versions 1.9.17 is
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
310 # yes, this has been changed in version 1.9.18 to no.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
311
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
312 dns proxy = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
313
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
314 # 8. File Naming Options:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
315 # Case Preservation can be handy - system default is _no_
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
316 # NOTE: These can be set on a per share basis
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
317 ; preserve case = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
318 ; short preserve case = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
319 # Default case is normally upper case for all DOS files
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
320 ; default case = lower
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
321 # Be very careful with case sensitivity - it can break things!
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
322 ; case sensitive = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
323
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
324 # Enabling internationalization:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
325 # you can match a Windows code page with a UNIX character set.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
326 # Windows: 437 (US), 737 (GREEK), 850 (Latin1 - Western European),
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
327 # 852 (Eastern Eu.), 861 (Icelandic), 932 (Cyrillic - Russian),
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
328 # 936 (Japanese - Shift-JIS), 936 (Simpl. Chinese), 949 (Korean
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
329 # Hangul),
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
330 # 950 (Trad. Chin.).
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
331 # UNIX: ISO8859-1 (Western European), ISO8859-2 (Eastern Eu.),
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
332 # ISO8859-5 (Russian Cyrillic), KOI8-R (Alt-Russ. Cyril.)
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
333 # This is an example for french users:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
334 ; client code page = 850
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
335 ; character set = ISO8859-1
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
336
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
337 #============================ Share Definitions ==============================
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
338
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
339 [homes]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
340 comment = Home Directories
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
341 browseable = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
342 writable = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
343
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
344 # You can enable VFS recycle bin on a per share basis:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
345 # Uncomment the next 2 lines (make sure you create a
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
346 # .recycle folder in the base of the share and ensure
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
347 # all users will have write access to it. See
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
348 # examples/VFS/recycle/REAME in samba-doc for details
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
349 ; vfs object = /usr/lib/samba/vfs/recycle.so
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
350 ; vfs options= /etc/samba/recycle.conf
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
351
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
352 # Un-comment the following and create the netlogon directory for Domain
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
353 # Logons
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
354 ; [netlogon]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
355 ; comment = Network Logon Service
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
356 ; path = /var/lib/samba/netlogon
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
357 ; guest ok = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
358 ; writable = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
359
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
360 #Uncomment the following 2 lines if you would like your login scripts
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
361 # to be created dynamically by ntlogon (check that you have it in the
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
362 # correct location (the default of the ntlogon rpm available in
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
363 # contribs)
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
364
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
365 ;root preexec = /usr/bin/ntlogon -u %U -g %G -o %a -d /var/lib/samba/netlogon
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
366 ;root postexec = rm -f /var/lib/samba/netlogon/%U.bat
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
367
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
368 # Un-comment the following to provide a specific roving profile share
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
369 # the default is to use the user's home directory
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
370 ;[Profiles]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
371 ; path = /var/lib/samba/profiles
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
372 ; browseable = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
373 ; guest ok = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
374
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
375
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
376 # NOTE: If you have a CUPS print system there is no need to
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
377 # specifically define each individual printer.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
378 # You must configure the samba printers with the appropriate Windows
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
379 # drivers on your Windows clients. On the Samba server no filtering is
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
380 # done. If you wish that the server provides the driver and the clients
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
381 # send PostScript ("Generic PostScript Printer" under Windows), you
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
382 # have to swap the 'print command' line below with the commented one.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
383
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
384 [printers]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
385 comment = All Printers
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
386 path = /var/spool/samba
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
387 browseable = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
388 # to allow user 'guest account' to print.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
389 guest ok = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
390 writable = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
391 printable = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
392 create mode = 0700
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
393
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
394 # =====================================
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
395 # print command: see above for details.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
396 # =====================================
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
397
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
398 print command = lpr-cups -P %p -o raw %s -r
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
399 # using client side printer drivers.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
400 ; print command = lpr-cups -P %p %s
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
401 # using cups own drivers (use generic PostScript on clients).
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
402 # The following two commands are the samba defaults for printing=cups
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
403 # change them only if you need different options:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
404 ; lpq command = lpq -P %p
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
405 ; lprm command = cancel %p-%j
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
406
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
407 # This share is used for Windows NT-style point-and-print support.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
408 # To be able to install drivers, you need to be either root, or listed
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
409 # in the printer admin parameter above. Note that you also need write
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
410 # access to the directory and share definition to be able to upload the
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
411 # drivers.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
412 # For more information on this, please see the Printing Support Section
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
413 # of /usr/share/doc/samba-/docs/Samba-HOWTO-Collection.pdf
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
414
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
415 [print$]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
416 path = /var/lib/samba/printers
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
417 browseable = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
418 read only = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
419 write list = @adm root
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
420
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
421 # A useful application of samba is to make a PDF-generation service
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
422 # To streamline this, install windows postscript drivers (preferably
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
423 # colour)on the samba server, so that clients can automatically install
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
424 # them.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
425
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
426 [pdf-generator]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
427 path = /var/tmp
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
428 guest ok = No
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
429 printable = Yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
430 comment = PDF Generator (only valid users)
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
431 #print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP &
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
432 print command = /usr/share/samba/scripts/print-pdf %s ~%u \\\\\\\\%L\\\\%u %m %I &
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
433
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
434 # This one is useful for people to share files
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
435 [tmp]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
436 comment = Temporary file space
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
437 path = /tmp
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
438 read only = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
439 public = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
440 echo command = cat %s; rm %s
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
441
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
442 # A publicly accessible directory, but read only, except for people in
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
443 # the "staff" group
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
444
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
445
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
446
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
447
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
448 ;[public]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
449 ; comment = Public Stuff
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
450 ; path = /home/samba/public
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
451 ; public = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
452 ; writable = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
453 ; write list = @staff
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
454 # Audited directory through experimental VFS audit.so module:
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
455 # Uncomment next line.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
456 ; vfs object = /usr/lib/samba/vfs/audit.so
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
457
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
458 # Other examples.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
459 #
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
460 # A private printer, usable only by Fred. Spool data will be placed in
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
461 # Fred's
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
462 # home directory. Note that fred must have write access to the spool
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
463 # directory,
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
464 # wherever it is.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
465 ;[fredsprn]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
466 ; comment = Fred's Printer
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
467 ; valid users = fred
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
468 ; path = /homes/fred
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
469 ; printer = freds_printer
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
470 ; public = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
471 ; writable = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
472 ; printable = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
473
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
474
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
475 -----------------------------------------------------------
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
476 # A private directory, usable only by Fred. Note that Fred requires
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
477 # write access to the directory.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
478
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
479 ;[fredsdir]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
480
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
481 [Agustin]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
482 ; comment = Fred's Service
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
483 comment = Agustin Private Files
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
484 ; path = /usr/somewhere/private
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
485 path = /home/agustin/Documents
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
486 ; valid users = fred
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
487 valid users = agustin
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
488 ; public = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
489 ; writable = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
490 writable = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
491 ; printable = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
492
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
493
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
494 -----------------------------------------------------------
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
495
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
496 # a service which has a different directory for each machine that
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
497 # connects this allows you to tailor configurations to incoming
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
498 # machines. You could also use the %u option to tailor it by user name.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
499 # The %m gets replaced with the machine name that is connecting.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
500 ;[pchome]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
501 ; comment = PC Directories
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
502 ; path = /usr/pc/%m
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
503 ; public = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
504 ; writable = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
505
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
506
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
507 -----------------------------------------------------------
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
508 # A publicly accessible directory, read/write to all users. Note that
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
509 # all files created in the directory by users will be owned by the
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
510 # default user, so any user with access can delete any other user's
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
511 # files. Obviously this directory must be writable by the default user.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
512 # Another user could of course be specified, in which case all files
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
513 # would be owned by that user instead.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
514
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
515 ;[public]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
516 ; path = /usr/somewhere/else/public
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
517 ; public = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
518 ; only guest = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
519 ; writable = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
520 ; printable = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
521
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
522 -----------------------------------------------------------
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
523
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
524 # The following two entries demonstrate how to share a directory so
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
525 # that two users can place files there that will be owned by the
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
526 # specific users. In this setup, the directory should be writable by
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
527 # both users and should have the sticky bit set on it to prevent abuse.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
528 # Obviously this could be extended to as many users as required.
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
529
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
530 ;[myshare]
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
531 ; comment = Mary's and Fred's stuff
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
532 ; path = /usr/somewhere/shared
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
533 ; valid users = mary fred
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
534 ; public = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
535 ; writable = yes
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
536 ; printable = no
79e376824b38 Add missing file.
Georg Brandl <georg@python.org>
parents:
diff changeset
537 ; create mask = 0765