1 |
patrick 09/06/26 20:24:11 |
2 |
|
3 |
Added: lmhosts samba.confd samba.initd smb.conf.default |
4 |
smbusers swat.xinetd |
5 |
Log: |
6 |
Initial commit. New split samba ebuilds by dev-zero. |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-fs/samba-server/files/3.3/lmhosts |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/files/3.3/lmhosts?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/files/3.3/lmhosts?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: lmhosts |
15 |
=================================================================== |
16 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/files/3.3/lmhosts,v 1.1 2009/06/26 20:24:11 patrick Exp $ |
17 |
127.0.0.1 localhost |
18 |
|
19 |
|
20 |
|
21 |
1.1 net-fs/samba-server/files/3.3/samba.confd |
22 |
|
23 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/files/3.3/samba.confd?rev=1.1&view=markup |
24 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/files/3.3/samba.confd?rev=1.1&content-type=text/plain |
25 |
|
26 |
Index: samba.confd |
27 |
=================================================================== |
28 |
#add "winbind" to the daemon_list if you also want winbind to start |
29 |
daemon_list="smbd nmbd" |
30 |
|
31 |
#---------------------------------------------------------------------------- |
32 |
# Daemons calls: <daemon_name>_<command_option> |
33 |
#---------------------------------------------------------------------------- |
34 |
my_service_name="samba" |
35 |
my_service_PRE="unset TMP TMPDIR" |
36 |
my_service_POST="" |
37 |
|
38 |
#---------------------------------------------------------------------------- |
39 |
# Daemons calls: <daemon_name>_<command_option> |
40 |
#---------------------------------------------------------------------------- |
41 |
smbd_start_options="-D" |
42 |
smbd_start="start-stop-daemon --start --quiet --exec /usr/sbin/smbd -- ${smbd_start_options}" |
43 |
smbd_stop="start-stop-daemon --stop --quiet --pidfile /var/run/smbd.pid" |
44 |
smbd_reload="killall -HUP smbd" |
45 |
|
46 |
nmbd_start_options="-D" |
47 |
nmbd_start="start-stop-daemon --start --quiet --exec /usr/sbin/nmbd -- ${nmbd_start_options}" |
48 |
nmbd_stop="start-stop-daemon --stop --quiet --pidfile /var/run/nmbd.pid" |
49 |
nmbd_reload="killall -HUP nmbd" |
50 |
|
51 |
winbind_start_options="" |
52 |
winbind_start="start-stop-daemon --start --quiet --exec /usr/sbin/winbindd -- ${winbind_start_options}" |
53 |
winbind_stop="start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/winbindd" |
54 |
winbind_reload="killall -HUP winbindd" |
55 |
|
56 |
|
57 |
|
58 |
|
59 |
1.1 net-fs/samba-server/files/3.3/samba.initd |
60 |
|
61 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/files/3.3/samba.initd?rev=1.1&view=markup |
62 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/files/3.3/samba.initd?rev=1.1&content-type=text/plain |
63 |
|
64 |
Index: samba.initd |
65 |
=================================================================== |
66 |
#!/sbin/runscript |
67 |
# Copyright 1999-2007 Gentoo Foundation |
68 |
# Distributed under the terms of the GNU General Public License, v2 or later |
69 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/files/3.3/samba.initd,v 1.1 2009/06/26 20:24:11 patrick Exp $ |
70 |
|
71 |
opts="reload" |
72 |
|
73 |
depend() { |
74 |
after slapd |
75 |
need net |
76 |
use cupsd |
77 |
} |
78 |
|
79 |
DAEMONNAME="${SVCNAME##samba.}" |
80 |
[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME} |
81 |
|
82 |
signal_do() { |
83 |
local signal="$1" |
84 |
[ -z "${signal}" ] && return 0 |
85 |
|
86 |
local result=0 last_result=0 daemon= cmd_exec= |
87 |
for daemon in ${daemon_list} ; do |
88 |
eval cmd_exec=\$${daemon}_${signal} |
89 |
if [ -n "${cmd_exec}" ]; then |
90 |
ebegin "${my_service_name} -> ${signal}: ${daemon}" |
91 |
#echo ${cmd} '->' ${!cmd} |
92 |
${cmd_exec} > /dev/null |
93 |
last_result=$? |
94 |
eend ${last_result} |
95 |
fi |
96 |
result=$(( ${result} + ${last_result} )) |
97 |
done |
98 |
return ${result} |
99 |
} |
100 |
start() { |
101 |
${my_service_PRE} |
102 |
signal_do start && return 0 |
103 |
|
104 |
eerror "Error: starting services (see system logs)" |
105 |
signal_do stop |
106 |
return 1 |
107 |
} |
108 |
stop() { |
109 |
${my_service_PRE} |
110 |
if signal_do stop ; then |
111 |
${my_service_POST} |
112 |
return 0 |
113 |
fi |
114 |
} |
115 |
reload() { |
116 |
${my_service_PRE} |
117 |
signal_do reload |
118 |
} |
119 |
|
120 |
|
121 |
|
122 |
1.1 net-fs/samba-server/files/3.3/smb.conf.default |
123 |
|
124 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/files/3.3/smb.conf.default?rev=1.1&view=markup |
125 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/files/3.3/smb.conf.default?rev=1.1&content-type=text/plain |
126 |
|
127 |
Index: smb.conf.default |
128 |
=================================================================== |
129 |
# This is the main Samba configuration file. You should read the |
130 |
# smb.conf(5) manual page in order to understand the options listed |
131 |
# here. Samba has a huge number of configurable options (perhaps too |
132 |
# many!) most of which are not shown in this example |
133 |
# |
134 |
# For a step to step guide on installing, configuring and using samba, |
135 |
# read the Samba-HOWTO-Collection. This may be obtained from: |
136 |
# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf |
137 |
# |
138 |
# Many working examples of smb.conf files can be found in the |
139 |
# Samba-Guide which is generated daily and can be downloaded from: |
140 |
# http://www.samba.org/samba/docs/Samba-Guide.pdf |
141 |
# |
142 |
# Any line which starts with a ; (semi-colon) or a # (hash) |
143 |
# is a comment and is ignored. In this example we will use a # |
144 |
# for commentry and a ; for parts of the config file that you |
145 |
# may wish to enable |
146 |
# |
147 |
# NOTE: Whenever you modify this file you should run the command "testparm" |
148 |
# to check that you have not made any basic syntactic errors. |
149 |
# |
150 |
#======================= Global Settings ===================================== |
151 |
[global] |
152 |
|
153 |
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH |
154 |
workgroup = MYGROUP |
155 |
|
156 |
# server string is the equivalent of the NT Description field |
157 |
server string = Samba Server |
158 |
|
159 |
# Security mode. Defines in which mode Samba will operate. Possible |
160 |
# values are share, user, server, domain and ads. Most people will want |
161 |
# user level security. See the Samba-HOWTO-Collection for details. |
162 |
security = user |
163 |
|
164 |
# This option is important for security. It allows you to restrict |
165 |
# connections to machines which are on your local network. The |
166 |
# following example restricts access to two C class networks and |
167 |
# the "loopback" interface. For more examples of the syntax see |
168 |
# the smb.conf man page |
169 |
; hosts allow = 192.168.1. 192.168.2. 127. |
170 |
|
171 |
# If you want to automatically load your printer list rather |
172 |
# than setting them up individually then you'll need this |
173 |
load printers = yes |
174 |
|
175 |
# you may wish to override the location of the printcap file |
176 |
; printcap name = /etc/printcap |
177 |
|
178 |
# on SystemV system setting printcap name to lpstat should allow |
179 |
# you to automatically obtain a printer list from the SystemV spool |
180 |
# system |
181 |
; printcap name = lpstat |
182 |
|
183 |
# It should not be necessary to specify the print system type unless |
184 |
# it is non-standard. Currently supported print systems include: |
185 |
# bsd, cups, sysv, plp, lprng, aix, hpux, qnx |
186 |
; printing = cups |
187 |
|
188 |
# Uncomment this if you want a guest account, you must add this to /etc/passwd |
189 |
# otherwise the user "nobody" is used |
190 |
; guest account = pcguest |
191 |
|
192 |
# this tells Samba to use a separate log file for each machine |
193 |
# that connects |
194 |
log file = /var/log/samba/log.%m |
195 |
|
196 |
# Put a capping on the size of the log files (in Kb). |
197 |
max log size = 50 |
198 |
|
199 |
# Use password server option only with security = server |
200 |
# The argument list may include: |
201 |
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name] |
202 |
# or to auto-locate the domain controller/s |
203 |
# password server = * |
204 |
; password server = <NT-Server-Name> |
205 |
|
206 |
# Use the realm option only with security = ads |
207 |
# Specifies the Active Directory realm the host is part of |
208 |
; realm = MY_REALM |
209 |
|
210 |
# Backend to store user information in. New installations should |
211 |
# use either tdbsam or ldapsam. smbpasswd is available for backwards |
212 |
# compatibility. tdbsam requires no further configuration. |
213 |
; passdb backend = tdbsam |
214 |
|
215 |
# Using the following line enables you to customise your configuration |
216 |
# on a per machine basis. The %m gets replaced with the netbios name |
217 |
# of the machine that is connecting. |
218 |
# Note: Consider carefully the location in the configuration file of |
219 |
# this line. The included file is read at that point. |
220 |
; include = /etc/samba/smb.conf.%m |
221 |
|
222 |
# Configure Samba to use multiple interfaces |
223 |
# If you have multiple network interfaces then you must list them |
224 |
# here. See the man page for details. |
225 |
; interfaces = 192.168.12.2/24 192.168.13.2/24 |
226 |
|
227 |
# Browser Control Options: |
228 |
# set local master to no if you don't want Samba to become a master |
229 |
# browser on your network. Otherwise the normal election rules apply |
230 |
; local master = no |
231 |
|
232 |
# OS Level determines the precedence of this server in master browser |
233 |
# elections. The default value should be reasonable |
234 |
; os level = 33 |
235 |
|
236 |
# Domain Master specifies Samba to be the Domain Master Browser. This |
237 |
# allows Samba to collate browse lists between subnets. Don't use this |
238 |
# if you already have a Windows NT domain controller doing this job |
239 |
; domain master = yes |
240 |
|
241 |
# Preferred Master causes Samba to force a local browser election on startup |
242 |
# and gives it a slightly higher chance of winning the election |
243 |
; preferred master = yes |
244 |
|
245 |
# Enable this if you want Samba to be a domain logon server for |
246 |
# Windows95 workstations. |
247 |
; domain logons = yes |
248 |
|
249 |
# if you enable domain logons then you may want a per-machine or |
250 |
# per user logon script |
251 |
# run a specific logon batch file per workstation (machine) |
252 |
; logon script = %m.bat |
253 |
# run a specific logon batch file per username |
254 |
; logon script = %U.bat |
255 |
|
256 |
# Where to store roving profiles (only for Win95 and WinNT) |
257 |
# %L substitutes for this servers netbios name, %U is username |
258 |
# You must uncomment the [Profiles] share below |
259 |
; logon path = \\%L\Profiles\%U |
260 |
|
261 |
# Windows Internet Name Serving Support Section: |
262 |
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server |
263 |
; wins support = yes |
264 |
|
265 |
# WINS Server - Tells the NMBD components of Samba to be a WINS Client |
266 |
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both |
267 |
; wins server = w.x.y.z |
268 |
|
269 |
# WINS Proxy - Tells Samba to answer name resolution queries on |
270 |
# behalf of a non WINS capable client, for this to work there must be |
271 |
# at least one WINS Server on the network. The default is NO. |
272 |
; wins proxy = yes |
273 |
|
274 |
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names |
275 |
# via DNS nslookups. The default is NO. |
276 |
dns proxy = no |
277 |
|
278 |
# These scripts are used on a domain controller or stand-alone |
279 |
# machine to add or delete corresponding unix accounts |
280 |
; add user script = /usr/sbin/useradd %u |
281 |
; add group script = /usr/sbin/groupadd %g |
282 |
; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u |
283 |
; delete user script = /usr/sbin/userdel %u |
284 |
; delete user from group script = /usr/sbin/deluser %u %g |
285 |
; delete group script = /usr/sbin/groupdel %g |
286 |
|
287 |
|
288 |
#============================ Share Definitions ============================== |
289 |
[homes] |
290 |
comment = Home Directories |
291 |
browseable = no |
292 |
writable = yes |
293 |
|
294 |
# Un-comment the following and create the netlogon directory for Domain Logons |
295 |
; [netlogon] |
296 |
; comment = Network Logon Service |
297 |
; path = /var/lib/samba/netlogon |
298 |
; guest ok = yes |
299 |
; writable = no |
300 |
; share modes = no |
301 |
|
302 |
|
303 |
# Un-comment the following to provide a specific roving profile share |
304 |
# the default is to use the user's home directory |
305 |
;[Profiles] |
306 |
; path = /var/lib/samba/profiles |
307 |
; browseable = no |
308 |
; guest ok = yes |
309 |
|
310 |
|
311 |
# NOTE: If you have a BSD-style print system there is no need to |
312 |
# specifically define each individual printer |
313 |
[printers] |
314 |
comment = All Printers |
315 |
path = /var/spool/samba |
316 |
browseable = no |
317 |
# Set public = yes to allow user 'guest account' to print |
318 |
guest ok = no |
319 |
writable = no |
320 |
printable = yes |
321 |
|
322 |
# This one is useful for people to share files |
323 |
;[tmp] |
324 |
; comment = Temporary file space |
325 |
; path = /tmp |
326 |
; read only = no |
327 |
; public = yes |
328 |
|
329 |
# A publicly accessible directory, but read only, except for people in |
330 |
# the "staff" group |
331 |
;[public] |
332 |
; comment = Public Stuff |
333 |
; path = /home/samba |
334 |
; public = yes |
335 |
; writable = yes |
336 |
; printable = no |
337 |
; write list = @staff |
338 |
|
339 |
# Other examples. |
340 |
# |
341 |
# A private printer, usable only by fred. Spool data will be placed in fred's |
342 |
# home directory. Note that fred must have write access to the spool directory, |
343 |
# wherever it is. |
344 |
;[fredsprn] |
345 |
; comment = Fred's Printer |
346 |
; valid users = fred |
347 |
; path = /homes/fred |
348 |
; printer = freds_printer |
349 |
; public = no |
350 |
; writable = no |
351 |
; printable = yes |
352 |
|
353 |
# A private directory, usable only by fred. Note that fred requires write |
354 |
# access to the directory. |
355 |
;[fredsdir] |
356 |
; comment = Fred's Service |
357 |
; path = /usr/somewhere/private |
358 |
; valid users = fred |
359 |
; public = no |
360 |
; writable = yes |
361 |
; printable = no |
362 |
|
363 |
# a service which has a different directory for each machine that connects |
364 |
# this allows you to tailor configurations to incoming machines. You could |
365 |
# also use the %U option to tailor it by user name. |
366 |
# The %m gets replaced with the machine name that is connecting. |
367 |
;[pchome] |
368 |
; comment = PC Directories |
369 |
; path = /usr/pc/%m |
370 |
; public = no |
371 |
; writable = yes |
372 |
|
373 |
# A publicly accessible directory, read/write to all users. Note that all files |
374 |
# created in the directory by users will be owned by the default user, so |
375 |
# any user with access can delete any other user's files. Obviously this |
376 |
# directory must be writable by the default user. Another user could of course |
377 |
# be specified, in which case all files would be owned by that user instead. |
378 |
;[public] |
379 |
; path = /usr/somewhere/else/public |
380 |
; public = yes |
381 |
; only guest = yes |
382 |
; writable = yes |
383 |
; printable = no |
384 |
|
385 |
# The following two entries demonstrate how to share a directory so that two |
386 |
# users can place files there that will be owned by the specific users. In this |
387 |
# setup, the directory should be writable by both users and should have the |
388 |
# sticky bit set on it to prevent abuse. Obviously this could be extended to |
389 |
# as many users as required. |
390 |
;[myshare] |
391 |
; comment = Mary's and Fred's stuff |
392 |
; path = /usr/somewhere/shared |
393 |
; valid users = mary fred |
394 |
; public = no |
395 |
; writable = yes |
396 |
; printable = no |
397 |
; create mask = 0765 |
398 |
|
399 |
|
400 |
|
401 |
|
402 |
|
403 |
1.1 net-fs/samba-server/files/3.3/smbusers |
404 |
|
405 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/files/3.3/smbusers?rev=1.1&view=markup |
406 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/files/3.3/smbusers?rev=1.1&content-type=text/plain |
407 |
|
408 |
Index: smbusers |
409 |
=================================================================== |
410 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/files/3.3/smbusers,v 1.1 2009/06/26 20:24:11 patrick Exp $ |
411 |
|
412 |
# Syntax: |
413 |
# Unix_name: SMB_name1 SMB_name2 ... |
414 |
|
415 |
root: Administrator admin |
416 |
nobody: guest pcguest smbguest |
417 |
|
418 |
|
419 |
|
420 |
1.1 net-fs/samba-server/files/3.3/swat.xinetd |
421 |
|
422 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/files/3.3/swat.xinetd?rev=1.1&view=markup |
423 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba-server/files/3.3/swat.xinetd?rev=1.1&content-type=text/plain |
424 |
|
425 |
Index: swat.xinetd |
426 |
=================================================================== |
427 |
# default: off |
428 |
# description: SWAT is the Samba Web Admin Tool. Use swat \ |
429 |
# to configure your Samba server. To use SWAT, \ |
430 |
# connect to port 901 with your favorite web browser. |
431 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba-server/files/3.3/swat.xinetd,v 1.1 2009/06/26 20:24:11 patrick Exp $ |
432 |
|
433 |
service swat |
434 |
{ |
435 |
port = 901 |
436 |
socket_type = stream |
437 |
wait = no |
438 |
only_from = localhost |
439 |
user = root |
440 |
server = /usr/sbin/swat |
441 |
log_on_failure += USERID |
442 |
disable = yes |
443 |
} |