[Samba] group permissions broken after upgrade 3.2.5 -> 3.4.8: deleting of files denied

Marc Schiffbauer marc at schiffbauer.net
Mon Jun 14 03:12:03 MDT 2010


* Christian PERRIER schrieb am 14.06.10 um 07:15 Uhr:
> Quoting Marc Schiffbauer:
> 
> > Now after the upgrade delete operations on files do not work anymore 
> > until a user owns the parent directory or has world write access to
> > it (windows client (XP SP2) gets a permission denied error).
> > 
> > This is strange because a user can still create files within a dir
> > that he does not own, so this can only be permitted by group permission, 
> > but deleting the same file gives a permission denied.
> > 
> > What might cause this? Is this a known bug in samba 3.4.8?
> 
> 
> How about looking in log files, preferrably after raising the log
> level to 3?
> 

Hi Christian,

sorry, I did not mention this: I already had a look at the log,
which shows nothing special ate log level 2 and this on log level 3.

Do you see anything special here?

[2010/06/14 11:08:18,  3] smbd/process.c:1459(process_smb)
  Transaction 40241 of length 142 (0 toread)
[2010/06/14 11:08:18,  3] smbd/process.c:1273(switch_message)
  switch message SMBntcreateX (pid 24750) conn 0xb8628478
[2010/06/14 11:08:18,  3] smbd/vfs.c:865(check_reduced_name)
  reduce_name [Temp/Neu Textdokument.txt] [/home/userdata]
[2010/06/14 11:08:18,  3] smbd/vfs.c:974(check_reduced_name)
  reduce_name: Temp/Neu Textdokument.txt reduced to /home/userdata/Temp/Neu Textdokument.txt
[2010/06/14 11:08:18,  3] smbd/error.c:60(error_packet_set)
  error packet at smbd/nttrans.c(563) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED
[2010/06/14 11:08:18,  3] smbd/process.c:1459(process_smb)
  Transaction 40242 of length 142 (0 toread)
[2010/06/14 11:08:18,  3] smbd/process.c:1273(switch_message)
  switch message SMBntcreateX (pid 24750) conn 0xb8628478
[2010/06/14 11:08:18,  3] smbd/vfs.c:865(check_reduced_name)
  reduce_name [Temp/Neu Textdokument.txt] [/home/userdata]
[2010/06/14 11:08:18,  3] smbd/vfs.c:974(check_reduced_name)
  reduce_name: Temp/Neu Textdokument.txt reduced to /home/userdata/Temp/Neu Textdokument.txt
[2010/06/14 11:08:18,  3] smbd/error.c:60(error_packet_set)
  error packet at smbd/nttrans.c(563) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED
[2010/06/14 11:08:18,  3] smbd/process.c:1459(process_smb)
  Transaction 40243 of length 132 (0 toread)
[2010/06/14 11:08:18,  3] smbd/process.c:1273(switch_message)
  switch message SMBtrans2 (pid 24750) conn 0xb8628478
[2010/06/14 11:08:18,  3] smbd/trans2.c:3956(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2010/06/14 11:08:18,  3] smbd/vfs.c:865(check_reduced_name)
  reduce_name [Temp/Neu Textdokument.txt] [/home/userdata]
[2010/06/14 11:08:18,  3] smbd/vfs.c:974(check_reduced_name)
  reduce_name: Temp/Neu Textdokument.txt reduced to /home/userdata/Temp/Neu Textdokument.txt
[2010/06/14 11:08:18,  3] smbd/trans2.c:4070(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo Temp/Neu Textdokument.txt (fnum = -1) level=1004 call=5 total_data=0
[2010/06/14 11:08:18,  3] smbd/process.c:1459(process_smb)
  Transaction 40244 of length 132 (0 toread)
[2010/06/14 11:08:18,  3] smbd/process.c:1273(switch_message)
  switch message SMBtrans2 (pid 24750) conn 0xb8628478
[2010/06/14 11:08:18,  3] smbd/trans2.c:3956(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2010/06/14 11:08:18,  3] smbd/vfs.c:865(check_reduced_name)
  reduce_name [Temp/Neu Textdokument.txt] [/home/userdata]
[2010/06/14 11:08:18,  3] smbd/vfs.c:974(check_reduced_name)
  reduce_name: Temp/Neu Textdokument.txt reduced to /home/userdata/Temp/Neu Textdokument.txt
[2010/06/14 11:08:18,  3] smbd/trans2.c:4070(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo Temp/Neu Textdokument.txt (fnum = -1) level=1004 call=5 total_data=0
[2010/06/14 11:08:18,  3] smbd/process.c:1459(process_smb)
  Transaction 40245 of length 80 (0 toread)
[2010/06/14 11:08:18,  3] smbd/process.c:1273(switch_message)
  switch message SMBtrans2 (pid 24750) conn 0xb8628478
[2010/06/14 11:08:18,  3] smbd/trans2.c:3956(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2010/06/14 11:08:18,  3] smbd/vfs.c:865(check_reduced_name)
  reduce_name [.] [/home/userdata]
[2010/06/14 11:08:18,  3] smbd/vfs.c:974(check_reduced_name)
  reduce_name: . reduced to /home/userdata
[2010/06/14 11:08:18,  3] smbd/trans2.c:4070(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo . (fnum = -1) level=1004 call=5 total_data=0
[2010/06/14 11:08:18,  3] smbd/process.c:1459(process_smb)
  Transaction 40246 of length 74 (0 toread)
[2010/06/14 11:08:18,  3] smbd/process.c:1273(switch_message)
  switch message SMBtrans2 (pid 24750) conn 0xb8628478
[2010/06/14 11:08:18,  3] smbd/trans2.c:2600(call_trans2qfsinfo)
  call_trans2qfsinfo: level = 258
[2010/06/14 11:08:18,  3] smbd/process.c:1459(process_smb)
  Transaction 40247 of length 74 (0 toread)
[2010/06/14 11:08:18,  3] smbd/process.c:1273(switch_message)
  switch message SMBtrans2 (pid 24750) conn 0xb8628478
[2010/06/14 11:08:18,  3] smbd/trans2.c:2600(call_trans2qfsinfo)
  call_trans2qfsinfo: level = 261
[2010/06/14 11:08:18,  3] smbd/process.c:1459(process_smb)
  Transaction 40248 of length 74 (0 toread)
[2010/06/14 11:08:18,  3] smbd/process.c:1273(switch_message)
  switch message SMBtrans2 (pid 24750) conn 0xb8628478
[2010/06/14 11:08:18,  3] smbd/trans2.c:2600(call_trans2qfsinfo)
  call_trans2qfsinfo: level = 261
[2010/06/14 11:08:19,  3] smbd/process.c:1459(process_smb)
  Transaction 40249 of length 80 (0 toread)
[2010/06/14 11:08:19,  3] smbd/process.c:1273(switch_message)
  switch message SMBtrans2 (pid 24750) conn 0xb85cc6e8
[2010/06/14 11:08:19,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (1010, 1006) - sec_ctx_stack_ndx = 0
[2010/06/14 11:08:19,  3] smbd/trans2.c:3956(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2010/06/14 11:08:19,  3] smbd/vfs.c:865(check_reduced_name)
  reduce_name [.] [/home/user2]
[2010/06/14 11:08:19,  3] smbd/vfs.c:974(check_reduced_name)
  reduce_name: . reduced to /home/user2
[2010/06/14 11:08:19,  3] smbd/trans2.c:4070(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo . (fnum = -1) level=1004 call=5 total_data=0
[2010/06/14 11:08:19,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2010/06/14 11:08:36,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0



-- 
8AAC 5F46 83B4 DB70 8317  3723 296C 6CCA 35A6 4134


More information about the samba mailing list