WinRAR cannot create filename in russian codepage on samba share

Alex Deiter tiamat at komi.mts.ru
Wed May 19 07:03:17 GMT 2004


Hi,

After upgrade samba from 3.0.1 up to 3.0.4 WinRAR (ver 3.x) cannot create filenames in russian code page - it got error: cannot create тест.rar Access is denied. But i can successfully create filename, contains only english characters.

smb.conf:
[global]
        dos charset = 866
        unix charset = KOI8-R
        display charset = KOI8-R
        workgroup = KOMI
        security = DOMAIN
        guest account = guest
        log level = 4
        log file = /var/log/samba/%m.log

[homes]
        valid users = %S
        read only = No
        browseable = No

smbd.log:
[2004/05/19 10:58:02, 3] smbd/process.c:process_smb(890)
  Transaction 75 of length 98
[2004/05/19 10:58:02, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans2 (pid 85431)
[2004/05/19 10:58:02, 4] smbd/uid.c:change_to_user(186)
  change_to_user: Skipping user change - already user
[2004/05/19 10:58:02, 3] smbd/trans2.c:call_trans2qfilepathinfo(2331)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2004/05/19 10:58:02, 3] smbd/trans2.c:call_trans2qfilepathinfo(2353)
  call_trans2qfilepathinfo: SMB_VFS_STAT of тест.rar failed (No such file or directory)
[2004/05/19 10:58:02, 3] smbd/error.c:error_packet(94)
  error string = No such file or directory
[2004/05/19 10:58:02, 3] smbd/error.c:error_packet(118)
  error packet at smbd/trans2.c(2219) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_NAME_NOT_FOUND
[2004/05/19 10:58:02, 3] smbd/process.c:process_smb(890)
  Transaction 76 of length 106
[2004/05/19 10:58:02, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans2 (pid 85431)
[2004/05/19 10:58:02, 4] smbd/uid.c:change_to_user(186)
  change_to_user: Skipping user change - already user
[2004/05/19 10:58:02, 3] smbd/trans2.c:call_trans2findfirst(1355)
  call_trans2findfirst: dirtype = 22, maxentries = 1366, close_after_first=1, close_if_end = 1 requires_resume_key = 1 level = 0x104, max_data_bytes = 16384
[2004/05/19 10:58:02, 3] smbd/dir.c:dptr_create(491)
  creating new dirptr 256 for path ./, expect_close = 1
[2004/05/19 10:58:02, 4] smbd/trans2.c:call_trans2findfirst(1430)
  dptr_num is 256, wcard = rc.serial, attr = 22
[2004/05/19 10:58:02, 4] smbd/dir.c:dptr_close_internal(224)
  closing dptr key 256
[2004/05/19 10:58:02, 4] smbd/trans2.c:call_trans2findfirst(1511)
  SMBtrans2 mask=rc.serial directory=./ dirtype=22 numentries=1
[2004/05/19 10:58:02, 3] smbd/process.c:process_smb(890)
  Transaction 77 of length 108
[2004/05/19 10:58:02, 3] smbd/process.c:switch_message(685)
  switch message SMBntcreateX (pid 85431)
[2004/05/19 10:58:02, 4] smbd/uid.c:change_to_user(186)
  change_to_user: Skipping user change - already user
[2004/05/19 10:58:02, 3] smbd/dosmode.c:unix_mode(111)
  unix_mode(тест.rar) returning 0744
[2004/05/19 10:58:02, 4] smbd/open.c:open_file_shared1(1010)
  calling open_file with flags=0x2 flags2=0x0 mode=0744
[2004/05/19 10:58:02, 3] smbd/open.c:open_file(173)
  Error opening file тест.rar (No such file or directory) (local_flags=2) (flags=2)
[2004/05/19 10:58:02, 3] smbd/error.c:error_packet(118)
  error packet at smbd/trans2.c(2222) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED

Why ?

Thanks a lot!



More information about the samba-technical mailing list