Gentoo Archives: gentoo-user-br

From: Marcos Vinicius Buzo <annihil4tor@×××××.com>
To: gentoo-user-br@l.g.o
Subject: Re: [gentoo-user-br] Samba
Date: Fri, 17 Jun 2005 12:54:49
Message-Id: d072c9770506170554360746d5@mail.gmail.com
In Reply to: Re: [gentoo-user-br] Samba by Mario Luiz Bernardinelli
1 Cara, muito estranha essa parada que tá acontecendo ae, bom, mas vamos
2 lá né, acho que a primeira coisa que você deveria fazer é recompilar o
3 samba, outra coisa que talvez não tenha nada a ver, mas solucionou um
4 problema meu uma vez, foi comentar a linha Obey pam restrictions =
5 yes, não sei porque diabos quando ficava habilitada essa opcao os
6 users nao logavam heueheue, detalhe: isso só acontecia em uma
7 instalação 0_o.
8 É interessante você rodar um testparm pra ver se não tem algo "errado"
9 no teu smb.conf.
10
11 Abraços,
12
13 T+
14
15
16
17 On 6/17/05, Mario Luiz Bernardinelli <mariolb@×××××××××××××××.br> wrote:
18 > Olá pessoal,
19 >
20 > Consegui mais algumas informações:
21 >
22 > Sequência de comandos executados no Windows-ME, após o login:
23 > C:\>F:
24 > F:\>deltree teste
25 > F:\>md teste
26 > F:\>dir teste
27 >
28 > Apos a execucao do comando 'dir teste' (diretório vazio), a saida do
29 > mesmo foi a seguinte:
30 >
31 > O volume da unidade F e SISTEMA
32 > Pasta de F:\teste
33 > . <DIR> 17/06/05 7:55 .
34 > .. <DIR> 17/06/05 7:55 ..Erro estendido 161
35 >
36 > e os seguintes registros foram gravados no log
37 > (log ativado com o comando 'smbcontrol smbd debug 7'):
38 >
39 >
40 > ==> log.ws1 <==
41 > [2005/06/17 07:58:42, 6] smbd/process.c:process_smb(1090)
42 > got message type 0x0 of len 0x47
43 > [2005/06/17 07:58:42, 3] smbd/process.c:process_smb(1091)
44 > Transaction 102 of length 75
45 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(464)
46 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(474)
47 > size=71
48 > smb_com=0x81
49 > smb_rcls=0
50 > smb_reh=0
51 > smb_err=0
52 > smb_flg=0
53 > smb_flg2=32768
54 > smb_tid=3
55 > smb_pid=4370
56 > smb_uid=100
57 > smb_mid=13697
58 > smt_wct=2
59 > smb_vwv[ 0]= 20 (0x14)
60 > smb_vwv[ 1]= 8 (0x8)
61 > smb_bcc=32
62 > [2005/06/17 07:58:42, 3] smbd/process.c:switch_message(886)
63 > switch message SMBsearch (pid 9067) conn 0x83347f8
64 > [2005/06/17 07:58:42, 4] smbd/uid.c:change_to_user(194)
65 > change_to_user: Skipping user change - already user
66 > [2005/06/17 07:58:42, 5] smbd/filename.c:unix_convert(108)
67 > unix_convert called on file ">>>>>>>>">>>"
68 > [2005/06/17 07:58:42, 5] smbd/filename.c:unix_convert(179)
69 > unix_convert begin: name = >>>>>>>>">>>, dirpath = , start = >>>>>>>>">>>
70 > [2005/06/17 07:58:42, 5] smbd/filename.c:unix_convert(328)
71 > New file >>>>>>>>">>>
72 > [2005/06/17 07:58:42, 5] smbd/dir.c:start_dir(334)
73 > start_dir dir=.
74 > [2005/06/17 07:58:42, 3] smbd/dir.c:dptr_create(491)
75 > creating new dirptr 4 for path ., expect_close = 0
76 > [2005/06/17 07:58:42, 4] smbd/reply.c:reply_search(909)
77 > dptr_num is 4
78 > [2005/06/17 07:58:42, 6] smbd/dir.c:dptr_fill(511)
79 > fill on key 4 dirptr 0x832c5c8 now at 0
80 > [2005/06/17 07:58:42, 4] smbd/reply.c:reply_search(980)
81 > SMBsearch mask=>>>>>>>>">>> path=. dtype=8 nument=1 of 20
82 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(464)
83 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(474)
84 > size=83
85 > smb_com=0x81
86 > smb_rcls=0
87 > smb_reh=0
88 > smb_err=0
89 > smb_flg=128
90 > smb_flg2=32833
91 > smb_tid=3
92 > smb_pid=4370
93 > smb_uid=100
94 > smb_mid=13697
95 > smt_wct=1
96 > smb_vwv[ 0]= 1 (0x1)
97 > smb_bcc=46
98 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(449)
99 > write_socket(22,87)
100 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(452)
101 > write_socket(22,87) wrote 87
102 > [2005/06/17 07:58:42, 6] smbd/process.c:process_smb(1090)
103 > got message type 0x0 of len 0x39
104 > [2005/06/17 07:58:42, 3] smbd/process.c:process_smb(1091)
105 > Transaction 103 of length 61
106 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(464)
107 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(474)
108 > size=57
109 > smb_com=0x81
110 > smb_rcls=0
111 > smb_reh=0
112 > smb_err=0
113 > smb_flg=0
114 > smb_flg2=32768
115 > smb_tid=3
116 > smb_pid=4370
117 > smb_uid=100
118 > smb_mid=13825
119 > smt_wct=2
120 > smb_vwv[ 0]= 20 (0x14)
121 > smb_vwv[ 1]= 0 (0x0)
122 > smb_bcc=18
123 > [2005/06/17 07:58:42, 3] smbd/process.c:switch_message(886)
124 > switch message SMBsearch (pid 9067) conn 0x83347f8
125 > [2005/06/17 07:58:42, 4] smbd/uid.c:change_to_user(194)
126 > change_to_user: Skipping user change - already user
127 > [2005/06/17 07:58:42, 5] smbd/filename.c:unix_convert(108)
128 > unix_convert called on file "TESTE"
129 > [2005/06/17 07:58:42, 5] smbd/dir.c:start_dir(334)
130 > start_dir dir=.
131 > [2005/06/17 07:58:42, 3] smbd/dir.c:dptr_create(491)
132 > creating new dirptr 5 for path ., expect_close = 0
133 > [2005/06/17 07:58:42, 4] smbd/reply.c:reply_search(909)
134 > dptr_num is 5
135 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
136 > readdir on dirptr 0x833b228 now at offset 1
137 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
138 > readdir on dirptr 0x833b228 now at offset 2
139 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
140 > readdir on dirptr 0x833b228 now at offset 3
141 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
142 > readdir on dirptr 0x833b228 now at offset 4
143 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
144 > readdir on dirptr 0x833b228 now at offset 5
145 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
146 > readdir on dirptr 0x833b228 now at offset 6
147 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
148 > readdir on dirptr 0x833b228 now at offset 7
149 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
150 > readdir on dirptr 0x833b228 now at offset 8
151 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
152 > readdir on dirptr 0x833b228 now at offset 9
153 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
154 > readdir on dirptr 0x833b228 now at offset 10
155 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
156 > readdir on dirptr 0x833b228 now at offset 11
157 > [2005/06/17 07:58:42, 5] smbd/dir.c:get_dir_entry(654)
158 > [teste] attribs didn't match 0
159 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
160 > readdir on dirptr 0x833b228 now at offset 12
161 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
162 > readdir on dirptr 0x833b228 now at offset 13
163 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
164 > readdir on dirptr 0x833b228 now at offset 14
165 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
166 > readdir on dirptr 0x833b228 now at offset 15
167 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
168 > readdir on dirptr 0x833b228 now at offset 16
169 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
170 > readdir on dirptr 0x833b228 now at offset 17
171 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
172 > readdir on dirptr 0x833b228 now at offset 18
173 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
174 > readdir on dirptr 0x833b228 now at offset 19
175 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
176 > readdir on dirptr 0x833b228 now at offset 20
177 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
178 > readdir on dirptr 0x833b228 now at offset 21
179 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
180 > readdir on dirptr 0x833b228 now at offset 22
181 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
182 > readdir on dirptr 0x833b228 now at offset 23
183 > [2005/06/17 07:58:42, 6] smbd/dir.c:get_dir_entry(618)
184 > readdir on dirptr 0x833b228 now at offset 23
185 > [2005/06/17 07:58:42, 4] smbd/dir.c:dptr_close_internal(224)
186 > closing dptr key 5
187 > [2005/06/17 07:58:42, 3] smbd/error.c:error_packet(145)
188 > error packet at smbd/reply.c(957) cmd=129 (SMBsearch) eclass=1 ecode=18
189 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(464)
190 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(474)
191 > size=35
192 > smb_com=0x81
193 > smb_rcls=1
194 > smb_reh=0
195 > smb_err=18
196 > smb_flg=128
197 > smb_flg2=32769
198 > smb_tid=3
199 > smb_pid=4370
200 > smb_uid=100
201 > smb_mid=13825
202 > smt_wct=0
203 > smb_bcc=0
204 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(449)
205 > write_socket(22,39)
206 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(452)
207 > write_socket(22,39) wrote 39
208 > [2005/06/17 07:58:42, 6] smbd/process.c:process_smb(1090)
209 > got message type 0x0 of len 0x32
210 > [2005/06/17 07:58:42, 3] smbd/process.c:process_smb(1091)
211 > Transaction 104 of length 54
212 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(464)
213 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(474)
214 > size=50
215 > smb_com=0x10
216 > smb_rcls=0
217 > smb_reh=0
218 > smb_err=0
219 > smb_flg=0
220 > smb_flg2=32768
221 > smb_tid=3
222 > smb_pid=4370
223 > smb_uid=100
224 > smb_mid=13953
225 > smt_wct=0
226 > smb_bcc=15
227 > [2005/06/17 07:58:42, 3] smbd/process.c:switch_message(886)
228 > switch message SMBchkpth (pid 9067) conn 0x83347f8
229 > [2005/06/17 07:58:42, 4] smbd/uid.c:change_to_user(194)
230 > change_to_user: Skipping user change - already user
231 > [2005/06/17 07:58:42, 5] smbd/filename.c:unix_convert(108)
232 > unix_convert called on file "TESTE"
233 > [2005/06/17 07:58:42, 3] smbd/reply.c:reply_chkpth(594)
234 > chkpth teste mode=15
235 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(464)
236 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(474)
237 > size=35
238 > smb_com=0x10
239 > smb_rcls=0
240 > smb_reh=0
241 > smb_err=0
242 > smb_flg=128
243 > smb_flg2=32769
244 > smb_tid=3
245 > smb_pid=4370
246 > smb_uid=100
247 > smb_mid=13953
248 > smt_wct=0
249 > smb_bcc=0
250 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(449)
251 > write_socket(22,39)
252 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(452)
253 > write_socket(22,39) wrote 39
254 > [2005/06/17 07:58:42, 6] smbd/process.c:process_smb(1090)
255 > got message type 0x0 of len 0x5c
256 > [2005/06/17 07:58:42, 3] smbd/process.c:process_smb(1091)
257 > Transaction 105 of length 96
258 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(464)
259 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(474)
260 > size=92
261 > smb_com=0x32
262 > smb_rcls=0
263 > smb_reh=0
264 > smb_err=0
265 > smb_flg=0
266 > smb_flg2=32769
267 > smb_tid=3
268 > smb_pid=4370
269 > smb_uid=100
270 > smb_mid=14081
271 > smt_wct=15
272 > smb_vwv[ 0]= 26 (0x1A)
273 > smb_vwv[ 1]= 0 (0x0)
274 > smb_vwv[ 2]= 10 (0xA)
275 > smb_vwv[ 3]= 616 (0x268)
276 > smb_vwv[ 4]= 0 (0x0)
277 > smb_vwv[ 5]= 0 (0x0)
278 > smb_vwv[ 6]= 0 (0x0)
279 > smb_vwv[ 7]= 0 (0x0)
280 > smb_vwv[ 8]= 0 (0x0)
281 > smb_vwv[ 9]= 26 (0x1A)
282 > smb_vwv[10]= 66 (0x42)
283 > smb_vwv[11]= 0 (0x0)
284 > smb_vwv[12]= 0 (0x0)
285 > smb_vwv[13]= 1 (0x1)
286 > smb_vwv[14]= 1 (0x1)
287 > smb_bcc=27
288 > [2005/06/17 07:58:42, 3] smbd/process.c:switch_message(886)
289 > switch message SMBtrans2 (pid 9067) conn 0x83347f8
290 > [2005/06/17 07:58:42, 4] smbd/uid.c:change_to_user(194)
291 > change_to_user: Skipping user change - already user
292 > [2005/06/17 07:58:42, 3] smbd/trans2.c:call_trans2findfirst(1359)
293 > call_trans2findfirst: dirtype = 22, maxentries = 1,
294 > close_after_first=1, close_if_end = 0 requires_resume_key = 0 level =
295 > 0x104, max_data_bytes = 616
296 > [2005/06/17 07:58:42, 5] smbd/filename.c:unix_convert(108)
297 > unix_convert called on file "TESTE"
298 > [2005/06/17 07:58:42, 5] smbd/trans2.c:call_trans2findfirst(1412)
299 > dir=./, mask = teste
300 > [2005/06/17 07:58:42, 5] smbd/dir.c:start_dir(334)
301 > start_dir dir=./
302 > [2005/06/17 07:58:42, 3] smbd/dir.c:dptr_create(491)
303 > creating new dirptr 256 for path ./, expect_close = 1
304 > [2005/06/17 07:58:42, 4] smbd/trans2.c:call_trans2findfirst(1442)
305 > dptr_num is 256, wcard = teste, attr = 22
306 > [2005/06/17 07:58:42, 5] smbd/trans2.c:get_lanman2_dir_entry(968)
307 > get_lanman2_dir_entry found ./teste fname=teste
308 > [2005/06/17 07:58:42, 5] smbd/trans2.c:call_trans2findfirst(1493)
309 > call_trans2findfirst - (2) closing dptr_num 256
310 > [2005/06/17 07:58:42, 4] smbd/dir.c:dptr_close_internal(224)
311 > closing dptr key 256
312 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(449)
313 > write_socket(22,176)
314 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(452)
315 > write_socket(22,176) wrote 176
316 > [2005/06/17 07:58:42, 4] smbd/trans2.c:call_trans2findfirst(1523)
317 > SMBtrans2 mask=teste directory=./ dirtype=22 numentries=1
318 > [2005/06/17 07:58:42, 6] smbd/process.c:process_smb(1090)
319 > got message type 0x0 of len 0x60
320 > [2005/06/17 07:58:42, 3] smbd/process.c:process_smb(1091)
321 > Transaction 106 of length 100
322 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(464)
323 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(474)
324 > size=96
325 > smb_com=0x32
326 > smb_rcls=0
327 > smb_reh=0
328 > smb_err=0
329 > smb_flg=0
330 > smb_flg2=32769
331 > smb_tid=3
332 > smb_pid=4370
333 > smb_uid=100
334 > smb_mid=14209
335 > smt_wct=15
336 > smb_vwv[ 0]= 30 (0x1E)
337 > smb_vwv[ 1]= 0 (0x0)
338 > smb_vwv[ 2]= 10 (0xA)
339 > smb_vwv[ 3]= 2432 (0x980)
340 > smb_vwv[ 4]= 0 (0x0)
341 > smb_vwv[ 5]= 0 (0x0)
342 > smb_vwv[ 6]= 0 (0x0)
343 > smb_vwv[ 7]= 0 (0x0)
344 > smb_vwv[ 8]= 0 (0x0)
345 > smb_vwv[ 9]= 30 (0x1E)
346 > smb_vwv[10]= 66 (0x42)
347 > smb_vwv[11]= 0 (0x0)
348 > smb_vwv[12]= 0 (0x0)
349 > smb_vwv[13]= 1 (0x1)
350 > smb_vwv[14]= 1 (0x1)
351 > smb_bcc=31
352 > [2005/06/17 07:58:42, 3] smbd/process.c:switch_message(886)
353 > switch message SMBtrans2 (pid 9067) conn 0x83347f8
354 > [2005/06/17 07:58:42, 4] smbd/uid.c:change_to_user(194)
355 > change_to_user: Skipping user change - already user
356 > [2005/06/17 07:58:42, 3] smbd/trans2.c:call_trans2findfirst(1359)
357 > call_trans2findfirst: dirtype = 22, maxentries = 4,
358 > close_after_first=0, close_if_end = 0 requires_resume_key = 0 level =
359 > 0x104, max_data_bytes = 2432
360 > [2005/06/17 07:58:42, 5] smbd/filename.c:unix_convert(108)
361 > unix_convert called on file "TESTE/*"
362 > [2005/06/17 07:58:42, 5] smbd/filename.c:unix_convert(179)
363 > unix_convert begin: name = teste/*, dirpath = teste, start = *
364 > [2005/06/17 07:58:42, 5] smbd/filename.c:unix_convert(328)
365 > New file *
366 > [2005/06/17 07:58:42, 5] smbd/trans2.c:call_trans2findfirst(1412)
367 > dir=teste, mask = *
368 > [2005/06/17 07:58:42, 5] smbd/dir.c:start_dir(334)
369 > start_dir dir=teste
370 > [2005/06/17 07:58:42, 3] smbd/dir.c:dptr_create(491)
371 > creating new dirptr 256 for path teste, expect_close = 1
372 > [2005/06/17 07:58:42, 4] smbd/trans2.c:call_trans2findfirst(1442)
373 > dptr_num is 256, wcard = *, attr = 22
374 > [2005/06/17 07:58:42, 5] smbd/trans2.c:get_lanman2_dir_entry(968)
375 > get_lanman2_dir_entry found teste/. fname=.
376 > [2005/06/17 07:58:42, 5] smbd/trans2.c:get_lanman2_dir_entry(968)
377 > get_lanman2_dir_entry found teste/.. fname=..
378 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(449)
379 > write_socket(22,268)
380 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(452)
381 > write_socket(22,268) wrote 268
382 > [2005/06/17 07:58:42, 4] smbd/trans2.c:call_trans2findfirst(1523)
383 > SMBtrans2 mask=* directory=teste dirtype=22 numentries=2
384 > [2005/06/17 07:58:42, 6] smbd/process.c:process_smb(1090)
385 > got message type 0x0 of len 0x54
386 > [2005/06/17 07:58:42, 3] smbd/process.c:process_smb(1091)
387 > Transaction 107 of length 88
388 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(464)
389 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(474)
390 > size=84
391 > smb_com=0x32
392 > smb_rcls=0
393 > smb_reh=0
394 > smb_err=0
395 > smb_flg=0
396 > smb_flg2=32769
397 > smb_tid=3
398 > smb_pid=4370
399 > smb_uid=100
400 > smb_mid=14337
401 > smt_wct=15
402 > smb_vwv[ 0]= 18 (0x12)
403 > smb_vwv[ 1]= 0 (0x0)
404 > smb_vwv[ 2]= 8 (0x8)
405 > smb_vwv[ 3]= 2432 (0x980)
406 > smb_vwv[ 4]= 0 (0x0)
407 > smb_vwv[ 5]= 0 (0x0)
408 > smb_vwv[ 6]= 0 (0x0)
409 > smb_vwv[ 7]= 0 (0x0)
410 > smb_vwv[ 8]= 0 (0x0)
411 > smb_vwv[ 9]= 18 (0x12)
412 > smb_vwv[10]= 66 (0x42)
413 > smb_vwv[11]= 0 (0x0)
414 > smb_vwv[12]= 0 (0x0)
415 > smb_vwv[13]= 1 (0x1)
416 > smb_vwv[14]= 2 (0x2)
417 > smb_bcc=19
418 > [2005/06/17 07:58:42, 3] smbd/process.c:switch_message(886)
419 > switch message SMBtrans2 (pid 9067) conn 0x83347f8
420 > [2005/06/17 07:58:42, 4] smbd/uid.c:change_to_user(194)
421 > change_to_user: Skipping user change - already user
422 > [2005/06/17 07:58:42, 3] smbd/error.c:error_packet(145)
423 > error packet at smbd/trans2.c(1582) cmd=50 (SMBtrans2) eclass=1 ecode=161
424 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(464)
425 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(474)
426 > size=35
427 > smb_com=0x32
428 > smb_rcls=1
429 > smb_reh=0
430 > smb_err=161
431 > smb_flg=128
432 > smb_flg2=32833
433 > smb_tid=3
434 > smb_pid=4370
435 > smb_uid=100
436 > smb_mid=14337
437 > smt_wct=0
438 > smb_bcc=0
439 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(449)
440 > write_socket(22,39)
441 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(452)
442 > write_socket(22,39) wrote 39
443 > [2005/06/17 07:58:42, 6] smbd/process.c:process_smb(1090)
444 > got message type 0x0 of len 0x25
445 > [2005/06/17 07:58:42, 3] smbd/process.c:process_smb(1091)
446 > Transaction 108 of length 41
447 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(464)
448 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(474)
449 > size=37
450 > smb_com=0x34
451 > smb_rcls=0
452 > smb_reh=0
453 > smb_err=0
454 > smb_flg=0
455 > smb_flg2=32768
456 > smb_tid=3
457 > smb_pid=4370
458 > smb_uid=100
459 > smb_mid=14465
460 > smt_wct=1
461 > smb_vwv[ 0]= 256 (0x100)
462 > smb_bcc=0
463 > [2005/06/17 07:58:42, 3] smbd/process.c:switch_message(886)
464 > switch message SMBfindclose (pid 9067) conn 0x83347f8
465 > [2005/06/17 07:58:42, 4] smbd/uid.c:change_to_user(194)
466 > change_to_user: Skipping user change - already user
467 > [2005/06/17 07:58:42, 3] smbd/trans2.c:reply_findclose(3943)
468 > reply_findclose, dptr_num = 256
469 > [2005/06/17 07:58:42, 4] smbd/dir.c:dptr_close_internal(224)
470 > closing dptr key 256
471 > [2005/06/17 07:58:42, 3] smbd/trans2.c:reply_findclose(3949)
472 > SMBfindclose dptr_num = -3
473 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(464)
474 > [2005/06/17 07:58:42, 5] lib/util.c:show_msg(474)
475 > size=35
476 > smb_com=0x34
477 > smb_rcls=0
478 > smb_reh=0
479 > smb_err=0
480 > smb_flg=128
481 > smb_flg2=32769
482 > smb_tid=3
483 > smb_pid=4370
484 > smb_uid=100
485 > smb_mid=14465
486 > smt_wct=0
487 > smb_bcc=0
488 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(449)
489 > write_socket(22,39)
490 > [2005/06/17 07:58:42, 6] lib/util_sock.c:write_socket(452)
491 > write_socket(22,39) wrote 39
492 >
493 >
494 > ----------------------
495 > Quando ativei o log no nmbd (smbcontrol nmbd debug 7), os
496 > seguintes registros são gravados a cada 10 segundos durante um bom
497 > tempo:
498 >
499 > ==> log.nmbd <==
500 > [2005/06/17 08:11:29, 4]
501 > nmbd/nmbd_workgroupdb.c:find_workgroup_on_subnet(173)
502 > find_workgroup_on_subnet: workgroup search for ELDORADO on subnet
503 > 172.16.0.2: found.
504 > [2005/06/17 08:11:29, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(284)
505 > dump_workgroups()
506 > dump workgroup on subnet 172.16.0.2: netmask= 255.255.0.0:
507 > ELDORADO(1) current master browser = SATURNO
508 > SATURNO 400c9b0b (Samba Server 3.0.10 on Gentoo Linux)
509 > [2005/06/17 08:11:29, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(284)
510 > dump_workgroups()
511 > dump workgroup on subnet UNICAST_SUBNET: netmask= 172.16.0.2:
512 > ELDORADO(1) current master browser = UNKNOWN
513 > SATURNO 40099b0b (Samba Server 3.0.10 on Gentoo Linux)
514 > [2005/06/17 08:11:29, 4]
515 > nmbd/nmbd_workgroupdb.c:find_workgroup_on_subnet(173)
516 > find_workgroup_on_subnet: workgroup search for ELDORADO on subnet
517 > UNICAST_SUBNET: found.
518 > [2005/06/17 08:11:29, 4]
519 > nmbd/nmbd_workgroupdb.c:find_workgroup_on_subnet(173)
520 > find_workgroup_on_subnet: workgroup search for ELDORADO on subnet
521 > UNICAST_SUBNET: found.
522 >
523 > Se alguém puder me ajudar, por favor...
524 >
525 > Obrigado,
526 >
527 > Marião
528 >
529 > Mario Luiz Bernardinelli wrote:
530 > > Oi Marcos,
531 > >
532 > > Desculpe a demora. Deu uma olhada nos logs (messages e todos do
533 > > diretorio /var/log/samba) e não há nenhum registro de erro.
534 > >
535 > > Eis as permissões dos diretórios, e alguns testes:
536 > >
537 > > ------------------------------
538 > > saturno samba # cd /home/samba/
539 > > saturno samba # ls -l
540 > > total 1
541 > > drwxrwsr-x 2 root install 136 Jun 4 14:02 install
542 > > drwxrwsr-x 3 root intranet 72 Jun 11 10:51 intranet
543 > > drwxr-xr-x 2 root root 144 Jun 13 13:33 netlogon
544 > > drwxrwsr-x 23 root sistema 552 Jun 15 00:07 sistema
545 > > drwxrwsr-x 8 root sistema 296 Jun 11 06:34 sistema2004
546 > >
547 > > saturno samba # cd sistema
548 > > saturno sistema # ls -ld teste
549 > > drwxrwsr-x 2 eldorado sistema 48 Jun 15 00:07 teste
550 > >
551 > > saturno sistema # ls -l teste
552 > > total 0
553 > >
554 > >
555 > > --- Outro diretorio vazio:
556 > >
557 > > saturno sistema # ls -ld CARLOS
558 > > drwxrwsr-x 2 eldorado sistema 48 Jun 11 04:44 CARLOS/
559 > >
560 > > saturno sistema # ls -l CARLOS/
561 > > total 0
562 > >
563 > > --- Executando o dir através de uma estacao Windows ME:
564 > >
565 > > F:\>cd CARLOS
566 > > F:\CARLOS>dir
567 > >
568 > > O volume da unidade F e SISTEMA
569 > > Pasta de F:\CARLOS
570 > >
571 > > . <DIR> 11/06/05 4:44 .
572 > > .. <DIR> 15/06/05 0:07 ..Erro estendido 161
573 > >
574 > > F:\CARLOS>
575 > > ------------------------------
576 > >
577 > > E o arquivo smb.conf:
578 > >
579 > > ------------------------------
580 > > [global]
581 > > workgroup = ELDORADO
582 > > netbios name = SATURNO
583 > > server string = Samba Server %v on Gentoo Linux
584 > > admin users = @smbadmin
585 > > log file = /var/log/samba/log.%m
586 > > max log size = 50
587 > > hosts allow = 172.16. 127.
588 > > security = user
589 > > encrypt passwords = yes
590 > > smb passwd file = /etc/samba/smbpasswd
591 > > unix password sync = Yes
592 > > pam password change = yes
593 > > passwd program = /usr/bin/passwd %u
594 > > passwd chat = *New*UNIX*password* %n\n *Re*ype*new*UNIX*password* %n\n \
595 > > *passwd:*all*authentication*tokens*updated*successfully*
596 > >
597 > > add machine script = /usr/sbin/useradd -d /dev/null -g machines -s
598 > > /sbin/false %u
599 > >
600 > > obey pam restrictions = yes
601 > > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
602 > >
603 > > local master = yes
604 > > os level = 33
605 > > domain master = yes
606 > > preferred master = yes
607 > >
608 > > domain logons = yes
609 > > logon script = %U.bat
610 > > logon path = \\%L\profiles\%U
611 > >
612 > > wins support = yes
613 > > dns proxy = no
614 > >
615 > > # time offset = -180
616 > >
617 > > [profiles]
618 > > path = /var/lib/samba/profiles
619 > > read only = no
620 > > create mask = 0600
621 > > directory mask = 0700
622 > > nt acl support = No
623 > >
624 > > [netlogon]
625 > > comment = Network logon service
626 > > path = /home/samba/netlogon
627 > > read only = yes
628 > > browseable = no
629 > > write list = @smbadmin
630 > > read list = @sistema,@install
631 > > nt acl support = No
632 > >
633 > > [sistema]
634 > > comment = Sistemas Eldorado
635 > > path = /home/samba/sistema
636 > > valid users = @sistema
637 > > read list = @sistema
638 > > write list = @sistema
639 > > force group = sistema
640 > > read only = no
641 > > create mask = 0775
642 > > directory mask = 2775
643 > >
644 > > [sistema2004]
645 > > comment = Sistemas Eldorado de 2004
646 > > path = /home/samba/sistema2004
647 > > valid users = @sistema
648 > > read list = @sistema
649 > > write list = @sistema
650 > > force group = sistema
651 > > read only = no
652 > > create mask = 0775
653 > > directory mask = 2775
654 > > nt acl support = No
655 > >
656 > > [install]
657 > > comment = Repositorio de sw e drivers
658 > > path = /home/samba/install
659 > > valid users = @sistema,@install
660 > > read list = @sistema,@install
661 > > write list = @install
662 > > force group = install
663 > > read only = no
664 > > create mask = 0775
665 > > directory mask = 2775
666 > > nt acl support = No
667 > >
668 > > [intranet]
669 > > comment = Intranet Web site
670 > > path = /home/samba/intranet
671 > > valid users = @sistema,@install,@intranet
672 > > read list = @sistema,@install,@intranet
673 > > write list = @intranet
674 > > force group = intranet
675 > > read only = no
676 > > browseable = no
677 > > create mask = 0775
678 > > directory mask = 2775
679 > > nt acl support = No
680 > > ------------------------------
681 > >
682 > > Um outro detalhe, talvez pertinente: estou usando RAID-1 (mirroring) e
683 > > ReiserFS. Mas acho que isto não deve ter influência, pois, como tenho
684 > > duas partições de swap (uma em cada HD), desabilitei uma delas,
685 > > formatei-a como ext3 e criei um compartilhamento no samba igual ao
686 > > [sistema] e o problema se repetiu.
687 > >
688 > > Muito obrigado pela atenção e ajuda.
689 > >
690 > > Abraços,
691 > >
692 > > Marião
693 > >
694 > > Marcos Vinicius Buzo wrote:
695 > >
696 > >> Teria como você postar o teu smb.conf e as permissões dos diretórios
697 > >> para a gente ver se pode ter algo relacionado ? Seria interessante
698 > >> vocë analizar os logs para ver se encontra alguma mensagem de erro
699 > >> referente a isso.
700 > >>
701 > >> Abracos, T+
702 > >>
703 > >> On 6/15/05, Mario Luiz Bernardinelli <mariolb@×××××××××××××××.br> wrote:
704 > >>
705 > >>> Oi Jerônimo,
706 > >>>
707 > >>> Já fiz isso: está com as mesmas configurações do servidor antigo e tudo
708 > >>> funciona:
709 > >>>
710 > >>> create mask = 0775
711 > >>> directory mask = 2775
712 > >>>
713 > >>>
714 > >>> De qualquer forma, obrigado.
715 > >>>
716 > >>>
717 > >>> Marião
718 > >>> Jeronimo Zucco wrote:
719 > >>>
720 > >>>> -----BEGIN PGP SIGNED MESSAGE-----
721 > >>>> Hash: SHA1
722 > >>>>
723 > >>>> Dah uma olhada nas opcoes create mask e directory mask
724 > >>>>
725 > >>>> - --
726 > >>>> Jeronimo Zucco
727 > >>>> LPIC-1 Linux Professional Institute Certified
728 > >>>> Certificado Conectiva Linux
729 > >>>> Núcleo de Processamento de Dados
730 > >>>> Universidade de Caxias do Sul
731 > >>>>
732 > >>>> "May the Source be with you." - An unknown jedi programmer.
733 > >>>>
734 > >>>>
735 > >>>> Mario Luiz Bernardinelli wrote:
736 > >>>>
737 > >>>>
738 > >>>>> Olá pessoal,
739 > >>>>>
740 > >>>>> Bom dia! Estou com um problema num servidor Samba e gostaria de
741 > >>>>> saber se
742 > >>>>> alguém já passou por isso:
743 > >>>>>
744 > >>>>> Tenho um servidor Gentoo + Samba 3.0.10 configurado como PDC para
745 > >>>>> atender uma pequena rede de 15 computadores com Windows 98/Me. O
746 > >>>>> problema que ocorre é o seguinte:
747 > >>>>>
748 > >>>>> - Suponha que o drive F: é um compartilhamento no Samba e que, numa
749 > >>>>> estação de trabalho, eu abra o prompt do MSDOS e acesse este
750 > >>>>> compartilhamento, quando tento o comando dir num subdiretório vazio,
751 > >>>>> recebo o seguinte erro: 'erro estendido 161'. Exemplo:
752 > >>>>>
753 > >>>>> C:\>f:
754 > >>>>> F:\>dir
755 > >>>>> ---- OK, o diretório não está vazio, então os arquivos são listados
756 > >>>>> -----como esperado
757 > >>>>>
758 > >>>>> F:\>md teste
759 > >>>>> F:\>cd teste
760 > >>>>> F:\TESTE>dir
761 > >>>>> ---- neste caso, são listados '.' e '..' e a
762 > >>>>> -----mensagem 'erro estendido 161' é apresentada
763 > >>>>>
764 > >>>>> Se eu tento copiar (com o xcopy) uma árvore de diretórios do disco
765 > >>>>> local
766 > >>>>> da estação para a rede, funciona, mesmo que hajam diretórios vazios.
767 > >>>>>
768 > >>>>> Por outro lado, se eu tento copiar uma árvore de diretórios do
769 > >>>>> servidor
770 > >>>>> para a estação de trabalho a cópia é finalizada assim que um diretório
771 > >>>>> vazio é encontrado. Se eu adiciono a opção /C ao xcopy, solicitando
772 > >>>>> que
773 > >>>>> ele ignore os erros, algumas vezes funciona, outras ele acaba
774 > >>>>> abortando
775 > >>>>> quando há vários diretórios vazios.
776 > >>>>>
777 > >>>>> No entanto, se eu executo a cópia do servidor para a estação de
778 > >>>>> trabalho
779 > >>>>> utilizando o Exploder, funciona!
780 > >>>>>
781 > >>>>> Se alguém puder ajudar, agradeço desde já.
782 > >>>>>
783 > >>>>> Obrigado,
784 > >>>>>
785 > >>>>> Marião
786 > >>>>>
787 > >>>>> Alguém já passou por isso, ou tem alguma sugestão?
788 > >>>>> "Talk is cheap. Show me the code."
789 > >>>>> Linus Torvalds
790 > >>>>>
791 > >>>>> "May the force be with you!"
792 > >>>>> Star Wars
793 > >>>>>
794 > >>>>> "May the Source be with you."
795 > >>>>> An unknown jedi programmer.
796 > >>>>>
797 > >>>>
798 > >>>>
799 > >>>>
800 > >>>> -----BEGIN PGP SIGNATURE-----
801 > >>>> Version: GnuPG v1.4.1 (GNU/Linux)
802 > >>>>
803 > >>>> iD8DBQFCsA7LTCq0VJ4DIPwRAlSsAKCZjcPAjJJQEusEZCDVyQMa3ciLjQCgzTp7
804 > >>>> z2f7KBrCVKUaAvo1X/df3P0=
805 > >>>> =Kup+
806 > >>>> -----END PGP SIGNATURE-----
807 > >>>
808 > >>>
809 > >>> --
810 > >>> "Talk is cheap. Show me the code."
811 > >>> Linus Torvalds
812 > >>>
813 > >>> "May the force be with you!"
814 > >>> Star Wars
815 > >>>
816 > >>> "May the Source be with you."
817 > >>> An unknown jedi programmer.
818 > >>>
819 > >>> --
820 > >>> gentoo-user-br@g.o mailing list
821 > >>>
822 > >>>
823 > >>
824 > >>
825 > >
826 >
827 > --
828 > "Talk is cheap. Show me the code."
829 > Linus Torvalds
830 >
831 > "May the force be with you!"
832 > Star Wars
833 >
834 > "May the Source be with you."
835 > An unknown jedi programmer.
836 >
837 > --
838 > gentoo-user-br@g.o mailing list
839 >
840 >
841
842 --
843 gentoo-user-br@g.o mailing list

Replies

Subject Author
Re: [gentoo-user-br] Samba Mario Luiz Bernardinelli <mariolb@×××××××××××××××.br>