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

Replies

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