[samba] WinRAR/Far error on create russian directory/filename on samba share

Alex Deiter tiamat на komi.mts.ru
Пн Май 17 13:55:06 MSD 2004


Добрый день!

На днях обнаружил ошибку при работе WinRAR 3.x/Far 1.7x c samba 
3.0.2/3.0.3/3.0.4 (на 3.0.0/3.0.1 таких ошибок не было).

При попытке создать каталог/файл с русским именем на самбовом ресурсе 
имеем ошибку: "отказано в доступе" или "файл не найден".
С другими программами таких ошибок нету. От кодировок не зависит - я 
пробовал с:
        dos charset = 866
        unix charset = UTF8
        display charset = UTF8
и:
        dos charset = 866
        unix charset = KOI8-R
        display charset = KOI8-R

Наступал кто-нибудь ?

Спасибо!

Лог samba 3.0.4 (log level  = 4) при попытке создать русский файл.txt из 
Far (Shift+F4):

[2004/05/17 13:52:14, 3] smbd/process.c:process_smb(890)
  Transaction 171 of length 114
[2004/05/17 13:52:14, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans2 (pid 79336)
[2004/05/17 13:52:14, 4] smbd/uid.c:change_to_user(186)
  change_to_user: Skipping user change - already user
[2004/05/17 13:52:14, 3] smbd/trans2.c:call_trans2qfilepathinfo(2331)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2004/05/17 13:52:14, 3] smbd/trans2.c:call_trans2qfilepathinfo(2353)
  call_trans2qfilepathinfo: SMB_VFS_STAT of русский файл.txt failed (No 
such file or directory)
[2004/05/17 13:52:14, 3] smbd/error.c:error_packet(94)
  error string = No such file or directory
[2004/05/17 13:52:14, 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/17 13:52:14, 3] smbd/process.c:process_smb(890)
  Transaction 172 of length 114
[2004/05/17 13:52:14, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans2 (pid 79336)
[2004/05/17 13:52:14, 4] smbd/uid.c:change_to_user(186)
  change_to_user: Skipping user change - already user
[2004/05/17 13:52:14, 3] smbd/trans2.c:call_trans2qfilepathinfo(2331)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2004/05/17 13:52:14, 3] smbd/trans2.c:call_trans2qfilepathinfo(2353)
  call_trans2qfilepathinfo: SMB_VFS_STAT of русский файл.txt failed (No 
such file or directory)
[2004/05/17 13:52:14, 3] smbd/error.c:error_packet(94)
  error string = No such file or directory
[2004/05/17 13:52:14, 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/17 13:52:14, 3] smbd/process.c:process_smb(890)
  Transaction 173 of length 124
[2004/05/17 13:52:14, 3] smbd/process.c:switch_message(685)
  switch message SMBntcreateX (pid 79336)
[2004/05/17 13:52:14, 4] smbd/uid.c:change_to_user(186)
  change_to_user: Skipping user change - already user
[2004/05/17 13:52:14, 3] smbd/dosmode.c:unix_mode(111)
  unix_mode(русский файл.txt) returning 0744
[2004/05/17 13:52:14, 4] smbd/open.c:open_file_shared1(1010)
  calling open_file with flags=0x0 flags2=0x0 mode=0744
[2004/05/17 13:52:14, 3] smbd/open.c:open_file(173)
  Error opening file русский файл.txt (No such file or directory) 
(local_flags=0) (flags=0)
[2004/05/17 13:52:14, 3] smbd/error.c:error_packet(118)
  error packet at smbd/trans2.c(2222) cmd=162 (SMBntcreateX) 
NT_STATUS_ACCESS_DENIED
[2004/05/17 13:52:14, 3] smbd/process.c:process_smb(890)
  Transaction 174 of length 124
[2004/05/17 13:52:14, 3] smbd/process.c:switch_message(685)
  switch message SMBntcreateX (pid 79336)
[2004/05/17 13:52:14, 4] smbd/uid.c:change_to_user(186)
  change_to_user: Skipping user change - already user
[2004/05/17 13:52:14, 3] smbd/dosmode.c:unix_mode(111)
  unix_mode(русский файл.txt) returning 0744
[2004/05/17 13:52:14, 4] smbd/open.c:open_file_shared1(1010)
  calling open_file with flags=0x0 flags2=0x0 mode=0744
[2004/05/17 13:52:14, 3] smbd/open.c:open_file(173)
  Error opening file русский файл.txt (No such file or directory) 
(local_flags=0) (flags=0)
[2004/05/17 13:52:14, 3] smbd/error.c:error_packet(118)
  error packet at smbd/trans2.c(2222) cmd=162 (SMBntcreateX) 
NT_STATUS_ACCESS_DENIED
[2004/05/17 13:52:14, 3] smbd/process.c:process_smb(890)
  Transaction 175 of length 120
[2004/05/17 13:52:14, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans2 (pid 79336)
[2004/05/17 13:52:14, 4] smbd/uid.c:change_to_user(186)
  change_to_user: Skipping user change - already user
[2004/05/17 13:52:14, 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/17 13:52:14, 3] smbd/dir.c:dptr_create(491)
  creating new dirptr 256 for path ./, expect_close = 1
[2004/05/17 13:52:14, 4] smbd/trans2.c:call_trans2findfirst(1430)
  dptr_num is 256, wcard = русский файл.txt, attr = 22
[2004/05/17 13:52:14, 4] smbd/dir.c:dptr_close_internal(224)
  closing dptr key 256
[2004/05/17 13:52:14, 3] smbd/error.c:error_packet(118)
  error packet at smbd/trans2.c(1492) cmd=50 (SMBtrans2) 
NT_STATUS_NO_SUCH_FILE

-- 
Александр Дейтер,
технический специалист службы автоматизации
ФОАО "МТС" в г.Сыктывкаре, РК




Подробная информация о списке рассылки Samba