1 |
dagger 11/06/30 15:50:28 |
2 |
|
3 |
Added: lmhosts samba.initd smb.conf.default.patch |
4 |
samba.confd swat.xinetd smbusers |
5 |
system-auth-winbind.pam samba.pam |
6 |
Log: |
7 |
add RC2 of Samba 3.6 |
8 |
|
9 |
(Portage version: 2.1.10.3/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 net-fs/samba/files/3.6/lmhosts |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/lmhosts?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/lmhosts?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: lmhosts |
18 |
=================================================================== |
19 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.6/lmhosts,v 1.1 2011/06/30 15:50:28 dagger Exp $ |
20 |
127.0.0.1 localhost |
21 |
|
22 |
|
23 |
|
24 |
1.1 net-fs/samba/files/3.6/samba.initd |
25 |
|
26 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/samba.initd?rev=1.1&view=markup |
27 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/samba.initd?rev=1.1&content-type=text/plain |
28 |
|
29 |
Index: samba.initd |
30 |
=================================================================== |
31 |
#!/sbin/runscript |
32 |
# Copyright 1999-2011 Gentoo Foundation |
33 |
# Distributed under the terms of the GNU General Public License, v2 or later |
34 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.6/samba.initd,v 1.1 2011/06/30 15:50:28 dagger Exp $ |
35 |
|
36 |
opts="reload" |
37 |
|
38 |
depend() { |
39 |
after slapd |
40 |
need net |
41 |
use cupsd |
42 |
} |
43 |
|
44 |
DAEMONNAME="${SVCNAME##samba.}" |
45 |
[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME} |
46 |
|
47 |
signal_do() { |
48 |
local signal="$1" |
49 |
[ -z "${signal}" ] && return 0 |
50 |
|
51 |
local result=0 last_result=0 daemon= cmd_exec= |
52 |
for daemon in ${daemon_list} ; do |
53 |
eval cmd_exec=\$${daemon}_${signal} |
54 |
if [ -n "${cmd_exec}" ]; then |
55 |
ebegin "${my_service_name} -> ${signal}: ${daemon}" |
56 |
#echo ${cmd} '->' ${!cmd} |
57 |
${cmd_exec} > /dev/null |
58 |
last_result=$? |
59 |
eend ${last_result} |
60 |
fi |
61 |
result=$(( ${result} + ${last_result} )) |
62 |
done |
63 |
return ${result} |
64 |
} |
65 |
|
66 |
mkdir_sambadirs() { |
67 |
[ -d /var/run/samba ] || mkdir -p /var/run/samba |
68 |
} |
69 |
|
70 |
start() { |
71 |
${my_service_PRE} |
72 |
mkdir_sambadirs |
73 |
signal_do start && return 0 |
74 |
|
75 |
eerror "Error: starting services (see system logs)" |
76 |
signal_do stop |
77 |
return 1 |
78 |
} |
79 |
stop() { |
80 |
${my_service_PRE} |
81 |
if signal_do stop ; then |
82 |
${my_service_POST} |
83 |
return 0 |
84 |
fi |
85 |
} |
86 |
reload() { |
87 |
${my_service_PRE} |
88 |
signal_do reload |
89 |
} |
90 |
|
91 |
|
92 |
|
93 |
1.1 net-fs/samba/files/3.6/smb.conf.default.patch |
94 |
|
95 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/smb.conf.default.patch?rev=1.1&view=markup |
96 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/smb.conf.default.patch?rev=1.1&content-type=text/plain |
97 |
|
98 |
Index: smb.conf.default.patch |
99 |
=================================================================== |
100 |
--- samba-3.6.0rc2/examples/smb.conf.default~ 2011-06-07 19:13:47.000000000 +0100 |
101 |
+++ samba-3.6.0rc2/examples/smb.conf.default 2011-06-30 16:12:42.388102480 +0100 |
102 |
@@ -63,7 +63,7 @@ |
103 |
|
104 |
# this tells Samba to use a separate log file for each machine |
105 |
# that connects |
106 |
- log file = /usr/local/samba/var/log.%m |
107 |
+ log file = /var/log/samba/log.%m |
108 |
|
109 |
# Put a capping on the size of the log files (in Kb). |
110 |
max log size = 50 |
111 |
@@ -81,7 +81,10 @@ |
112 |
|
113 |
# Backend to store user information in. New installations should |
114 |
# use either tdbsam or ldapsam. smbpasswd is available for backwards |
115 |
-# compatibility. tdbsam requires no further configuration. |
116 |
+# compatibility. tdbsam requires no further configuration. If you're |
117 |
+# migrating from < samba 3.4, you'll have to convert your old user |
118 |
+# passwords to the new backend with the command: |
119 |
+# pdbedit -i smbpasswd:/var/lib/samba/private/smbpasswd -e |
120 |
; passdb backend = tdbsam |
121 |
|
122 |
# Using the following line enables you to customise your configuration |
123 |
@@ -89,7 +92,7 @@ |
124 |
# of the machine that is connecting. |
125 |
# Note: Consider carefully the location in the configuration file of |
126 |
# this line. The included file is read at that point. |
127 |
-; include = /usr/local/samba/lib/smb.conf.%m |
128 |
+; include = /etc/samba/smb.conf.%m |
129 |
|
130 |
# Configure Samba to use multiple interfaces |
131 |
# If you have multiple network interfaces then you must list them |
132 |
@@ -166,7 +169,7 @@ |
133 |
# Un-comment the following and create the netlogon directory for Domain Logons |
134 |
; [netlogon] |
135 |
; comment = Network Logon Service |
136 |
-; path = /usr/local/samba/lib/netlogon |
137 |
+; path = /var/lib/samba/netlogon |
138 |
; guest ok = yes |
139 |
; writable = no |
140 |
; share modes = no |
141 |
@@ -175,7 +178,7 @@ |
142 |
# Un-comment the following to provide a specific roving profile share |
143 |
# the default is to use the user's home directory |
144 |
;[Profiles] |
145 |
-; path = /usr/local/samba/profiles |
146 |
+; path = /var/lib/samba/profiles |
147 |
; browseable = no |
148 |
; guest ok = yes |
149 |
|
150 |
@@ -184,7 +187,7 @@ |
151 |
# specifically define each individual printer |
152 |
[printers] |
153 |
comment = All Printers |
154 |
- path = /usr/spool/samba |
155 |
+ path = /var/spool/samba |
156 |
browseable = no |
157 |
# Set public = yes to allow user 'guest account' to print |
158 |
guest ok = no |
159 |
@@ -204,7 +207,7 @@ |
160 |
; comment = Public Stuff |
161 |
; path = /home/samba |
162 |
; public = yes |
163 |
-; writable = no |
164 |
+; writable = yes |
165 |
; printable = no |
166 |
; write list = @staff |
167 |
|
168 |
|
169 |
|
170 |
|
171 |
1.1 net-fs/samba/files/3.6/samba.confd |
172 |
|
173 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/samba.confd?rev=1.1&view=markup |
174 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/samba.confd?rev=1.1&content-type=text/plain |
175 |
|
176 |
Index: samba.confd |
177 |
=================================================================== |
178 |
#add "winbind" to the daemon_list if you also want winbind to start |
179 |
daemon_list="smbd nmbd" |
180 |
|
181 |
#---------------------------------------------------------------------------- |
182 |
# Daemons calls: <daemon_name>_<command_option> |
183 |
#---------------------------------------------------------------------------- |
184 |
my_service_name="samba" |
185 |
my_service_PRE="unset TMP TMPDIR" |
186 |
my_service_POST="" |
187 |
|
188 |
#---------------------------------------------------------------------------- |
189 |
# Daemons calls: <daemon_name>_<command_option> |
190 |
#---------------------------------------------------------------------------- |
191 |
smbd_start_options="-D" |
192 |
smbd_start="start-stop-daemon --start --exec /usr/sbin/smbd -- ${smbd_start_options}" |
193 |
smbd_stop="start-stop-daemon --stop --exec /usr/sbin/smbd" |
194 |
smbd_reload="killall -HUP smbd" |
195 |
|
196 |
nmbd_start_options="-D" |
197 |
nmbd_start="start-stop-daemon --start --exec /usr/sbin/nmbd -- ${nmbd_start_options}" |
198 |
nmbd_stop="start-stop-daemon --stop --exec /usr/sbin/nmbd" |
199 |
nmbd_reload="killall -HUP nmbd" |
200 |
|
201 |
winbind_start_options="" |
202 |
winbind_start="start-stop-daemon --start --exec /usr/sbin/winbindd -- ${winbind_start_options}" |
203 |
winbind_stop="start-stop-daemon --stop --oknodo --exec /usr/sbin/winbindd" |
204 |
winbind_reload="killall -HUP winbindd" |
205 |
|
206 |
|
207 |
|
208 |
|
209 |
1.1 net-fs/samba/files/3.6/swat.xinetd |
210 |
|
211 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/swat.xinetd?rev=1.1&view=markup |
212 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/swat.xinetd?rev=1.1&content-type=text/plain |
213 |
|
214 |
Index: swat.xinetd |
215 |
=================================================================== |
216 |
# default: off |
217 |
# description: SWAT is the Samba Web Admin Tool. Use swat \ |
218 |
# to configure your Samba server. To use SWAT, \ |
219 |
# connect to port 901 with your favorite web browser. |
220 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.6/swat.xinetd,v 1.1 2011/06/30 15:50:28 dagger Exp $ |
221 |
|
222 |
service swat |
223 |
{ |
224 |
port = 901 |
225 |
socket_type = stream |
226 |
wait = no |
227 |
only_from = localhost |
228 |
user = root |
229 |
server = /usr/sbin/swat |
230 |
log_on_failure += USERID |
231 |
disable = yes |
232 |
} |
233 |
|
234 |
|
235 |
|
236 |
1.1 net-fs/samba/files/3.6/smbusers |
237 |
|
238 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/smbusers?rev=1.1&view=markup |
239 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/smbusers?rev=1.1&content-type=text/plain |
240 |
|
241 |
Index: smbusers |
242 |
=================================================================== |
243 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.6/smbusers,v 1.1 2011/06/30 15:50:28 dagger Exp $ |
244 |
|
245 |
# Syntax: |
246 |
# Unix_name = SMB_name1 SMB_name2 ... |
247 |
|
248 |
root = Administrator admin |
249 |
nobody = guest pcguest smbguest |
250 |
|
251 |
|
252 |
|
253 |
1.1 net-fs/samba/files/3.6/system-auth-winbind.pam |
254 |
|
255 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/system-auth-winbind.pam?rev=1.1&view=markup |
256 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/system-auth-winbind.pam?rev=1.1&content-type=text/plain |
257 |
|
258 |
Index: system-auth-winbind.pam |
259 |
=================================================================== |
260 |
#%PAM-1.0 |
261 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.6/system-auth-winbind.pam,v 1.1 2011/06/30 15:50:28 dagger Exp $ |
262 |
|
263 |
auth required pam_env.so |
264 |
auth sufficient pam_winbind.so |
265 |
auth sufficient pam_unix.so likeauth nullok use_first_pass |
266 |
auth required pam_deny.so |
267 |
|
268 |
account sufficient pam_winbind.so |
269 |
account required pam_unix.so |
270 |
|
271 |
password required pam_cracklib.so retry=3 |
272 |
password sufficient pam_unix.so nullok use_authtok md5 shadow |
273 |
password required pam_deny.so |
274 |
|
275 |
session required pam_mkhomedir.so skel=/etc/skel/ umask=0022 |
276 |
session required pam_limits.so |
277 |
session required pam_unix.so |
278 |
|
279 |
|
280 |
|
281 |
1.1 net-fs/samba/files/3.6/samba.pam |
282 |
|
283 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/samba.pam?rev=1.1&view=markup |
284 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/3.6/samba.pam?rev=1.1&content-type=text/plain |
285 |
|
286 |
Index: samba.pam |
287 |
=================================================================== |
288 |
#%PAM-1.0 |
289 |
# * pam_smbpass.so authenticates against the smbpasswd file |
290 |
# * changed Redhat's 'pam_stack' with 'include' for *BSD compatibility |
291 |
# (Diego "Flameeyes" Petteno'): enable with pam>=0.78 only |
292 |
auth required pam_smbpass.so nodelay |
293 |
account include system-auth |
294 |
session include system-auth |
295 |
password required pam_smbpass.so nodelay smbconf=/etc/samba/smb.conf |