[Pkg-samba-maint] Bug#688059: samba: files not deleted, smbstatus segfaults

Mc.Sim mc-sim85 at mail.ru
Sun Oct 7 12:46:59 UTC 2012


Package: samba
Version: 2:3.6.6-3
Followup-For: Bug #688059

Dear Maintainer,
some information about this bug:
My config samba:
MEDIA ~ # testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[rTorrent]"
Processing section "[Хлам$]"
Processing section "[Видео]"
Processing section "[Аудио]"
Processing section "[Учебные материалы]"
Processing section "[Soft]"
Processing section "[Образы]"
Processing section "[Любимкина]"
Processing section "[pron$]"
Processing section "[foto$]"
Processing section "[Картинки]"
Processing section "[Журналы]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE
[global]
        server string = Медиа помойка
        interfaces = eth0, wlan0, lo
        bind interfaces only = Yes
        map to guest = Bad User
        log file = /var/log/samba/log.%m
        smb ports = 139
        max protocol = SMB2
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        load printers = No
        printcap name = /dev/null
        disable spoolss = Yes
        show add printer wizard = No
        os level = 165
        preferred master = Yes
        wins support = Yes
        remote announce = 192.168.1.255
        recycle:touch = yes
        recycle:maxsize = 104805760
        recycle:exclude = ?~$*,~$*,*.tmp,index*.pl,index*.htm*,*.temp,*.TMP
        recycle:versions = yes
        recycle:keeptree = yes
        recycle:repository = .recycler/%m-%T
        recycle:subdir_mode = 0720
        recycle:directory_mode = 0777
        idmap config * : backend = tdb
        create mask = 0766
        directory mask = 0777
        vfs objects = recycle
<...>

[Хлам$]
        comment = Общая папка медиа
        path = /disk15/hlam
        read only = No
        guest ok = Yes
<...>

I have some directory in share Хлам$ with unix access rights:
-----------------------------------------------------------------
MEDIA ~ # ls -la /disk15/hlam/ | grep torr
drwxrwxrwx 22 root   root          4096 Окт  7 14:52 torrent
MEDIA ~ # ls -la /disk15/hlam/torrent/ | grep LinuxS
drwxrwxrwx  2 root root 4096 Апр 18  2011 LinuxSecurity_DIVX_[NNM-Club]
drwxrwxrwx  3 root root 4096 Янв  1  1970 LinuxSecurity_[NNM-Club]
MEDIA ~ # ls -la /disk15/hlam/torrent/LinuxSecurity_\[NNM-Club\]/
итого 12
drwxrwxrwx  3 root root 4096 Янв  1  1970 .
drwxrwxrwx 22 root root 4096 Окт  7 14:52 ..
drwxrwxrwx  2 root root 4096 Янв  1  1970 Codec_Lagarith_1322
MEDIA ~ # ls -la /disk15/hlam/torrent/LinuxSecurity_\[NNM-Club\]/Codec_Lagarith_1322/
итого 8
drwxrwxrwx 2 root root 4096 Янв  1  1970 .
drwxrwxrwx 3 root root 4096 Янв  1  1970 ..
------------------------------------------------------------------
As we see, the permission on directory LinuxSecurity_DIVX_[NNM-Club] will allow to delete this folder.
I wanted to delete this directory from windows-host and get error 
http://www.k-max.name/wp-content/uploads/2012/10/samba-error.png


In log (with log level = 2) I am get next message:
-----------------------------------------
[2012/10/07 14:30:33.505644,  2] lib/interface.c:341(add_interface)
  added interface eth0 ip=192.168.1.100 bcast=192.168.1.255 netmask=255.255.255.0
[2012/10/07 14:30:33.506640,  2] lib/interface.c:390(interpret_interface)
  interpret_interface: Can't find address for wlan0
[2012/10/07 14:30:33.507056,  2] lib/interface.c:341(add_interface)
  added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
[2012/10/07 14:30:49.935477,  2] smbd/trans2.c:5587(smb_set_file_dosmode)
  smb_set_file_dosmode: file_set_dosmode of torrent/LinuxSecurity_[NNM-Club] failed (Операция не позволяется)
[2012/10/07 14:30:50.074276,  2] smbd/trans2.c:5587(smb_set_file_dosmode)
  smb_set_file_dosmode: file_set_dosmode of torrent/LinuxSecurity_[NNM-Club] failed (Операция не позволяется)
[2012/10/07 14:30:56.456229,  2] smbd/trans2.c:5587(smb_set_file_dosmode)
  smb_set_file_dosmode: file_set_dosmode of torrent/LinuxSecurity_[NNM-Club] failed (Операция не позволяется)
[2012/10/07 14:32:09.271375,  2] smbd/open.c:704(open_file)
------------------------------------------

smbstatus show:
--------------------------------------------
MEDIA ~ # smbstatus


Samba version 3.6.6
PID     Username      Group         Machine
-------------------------------------------------------------------

Service      pid     machine       Connected at
-------------------------------------------------------
Видео   7553   nout          Sun Oct  7 11:05:43 2012
rTorrent     9132   father        Sun Oct  7 14:06:12 2012
Хлам$    9132   father        Sun Oct  7 12:11:30 2012

Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
9132         65534      DENY_NONE  0x100081    RDONLY     NONE             /disk15/hlam   .   Sun Oct  7 12:11:30 2012
Ошибка сегментирования
------------------------------------------------------------------------

Then, I set log level = 9, clear log and reload samba:
MEDIA ~ # echo > /var/log/samba/log.father
MEDIA ~ # vim /etc/samba/smb.conf # < log level = 9
MEDIA ~ # service samba reload
[ ok ] Reloading /etc/samba/smb.conf: smbd only.

And I try to delete directory LinuxSecurity_DIVX_[NNM-Club] step by step:
1. I open directory \\MEDIA\Хлам$\torrent\ and select directory LinuxSecurity_[NNM-Club] and i get next message in samba-log:
======================================================================
[2012/10/07 15:53:45.002058,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0
[2012/10/07 15:53:45.002194,  5] ../libcli/security/security_token.c:63(security_token_debug)
  Security token SIDs (7):
    SID[  0]: S-1-5-21-4247409455-2685806330-4099132636-501
    SID[  1]: S-1-5-21-4247409455-2685806330-4099132636-513
    SID[  2]: S-1-5-21-4247409455-2685806330-4099132636-546
    SID[  3]: S-1-1-0
    SID[  4]: S-1-5-2
    SID[  5]: S-1-5-32-546
    SID[  6]: S-1-22-1-65534
   Privileges (0x               0):
   Rights (0x               0):
[2012/10/07 15:53:45.002503,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 65534
  Primary group is 65534 and contains 0 supplementary groups
[2012/10/07 15:53:45.002668,  5] smbd/uid.c:317(change_to_user_internal)
  Impersonated user: uid=(0,65534), gid=(0,65534)
[2012/10/07 15:53:45.002746,  4] smbd/vfs.c:780(vfs_ChDir)
  vfs_ChDir to /disk15/hlam
[2012/10/07 15:53:45.002835,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]/desktop.ini"
[2012/10/07 15:53:45.002926,  5] smbd/filename.c:416(unix_convert)
  unix_convert begin: name = torrent/LinuxSecurity_[NNM-Club]/desktop.ini, dirpath = torrent/LinuxSecurity_[NNM-Club], start = desktop.ini
[2012/10/07 15:53:45.003009,  5] smbd/filename.c:184(check_parent_exists)
  check_parent_exists: name = torrent/LinuxSecurity_[NNM-Club]/desktop.ini, dirpath = torrent/LinuxSecurity_[NNM-Club], start = desktop.ini
[2012/10/07 15:53:45.003122,  5] smbd/filename.c:781(unix_convert)
  New file desktop.ini
[2012/10/07 15:53:45.003200,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]/desktop.ini] [/disk15/hlam]
[2012/10/07 15:53:45.003293,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club]/desktop.ini reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]/desktop.ini
[2012/10/07 15:53:45.003370,  5] smbd/files.c:140(file_new)
  allocated file structure 11671, fnum = 15767 (9 used)
[2012/10/07 15:53:45.003451,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(torrent/LinuxSecurity_[NNM-Club]/desktop.ini) returning 0766
[2012/10/07 15:53:45.003525,  5] smbd/open.c:1690(open_file_ntcreate)
  open_file_ntcreate: FILE_OPEN requested for file torrent/LinuxSecurity_[NNM-Club]/desktop.ini and file doesn't exist.
[2012/10/07 15:53:45.003637,  5] smbd/files.c:482(file_free)
  freed files structure 15767 (8 used)
[2012/10/07 15:53:45.123768,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/10/07 15:53:45.123896,  5] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2012/10/07 15:53:45.123968,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2012/10/07 15:53:45.124073,  5] smbd/uid.c:400(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2012/10/07 15:53:45.124189,  3] lib/access.c:338(allow_access)
  Allowed connection from 192.168.1.180 (192.168.1.180)
[2012/10/07 15:53:45.124285,  5] lib/username.c:171(Get_Pwnam_alloc)
  Finding user nobody
[2012/10/07 15:53:45.124359,  5] lib/username.c:116(Get_Pwnam_internals)
  Trying _Get_Pwnam(), username as lowercase is nobody
[2012/10/07 15:53:45.124443,  5] lib/username.c:149(Get_Pwnam_internals)
  Get_Pwnam_internals did find user [nobody]!
[2012/10/07 15:53:45.124527,  3] smbd/service.c:872(make_connection_snum)
  Connect path is '/tmp' for service [IPC$]
[2012/10/07 15:53:45.124630,  3] smbd/vfs.c:102(vfs_init_default)
  Initialising default vfs hooks
[2012/10/07 15:53:45.124704,  3] smbd/vfs.c:128(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
  Successfully loaded vfs module [/[Default VFS]/] with the new modules system
[2012/10/07 15:53:45.124801,  3] smbd/vfs.c:128(vfs_init_custom)
  Initialising custom vfs hooks from [recycle]
  Successfully loaded vfs module [recycle] with the new modules system
[2012/10/07 15:53:45.124902,  5] smbd/connection.c:134(claim_connection)
  claiming [IPC$]
[2012/10/07 15:53:45.125039,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0
[2012/10/07 15:53:45.125130,  5] ../libcli/security/security_token.c:63(security_token_debug)
  Security token SIDs (7):
    SID[  0]: S-1-5-21-4247409455-2685806330-4099132636-501
    SID[  1]: S-1-5-21-4247409455-2685806330-4099132636-513
    SID[  2]: S-1-5-21-4247409455-2685806330-4099132636-546
    SID[  3]: S-1-1-0
    SID[  4]: S-1-5-2
    SID[  5]: S-1-5-32-546
    SID[  6]: S-1-22-1-65534
   Privileges (0x               0):
   Rights (0x               0):
[2012/10/07 15:53:45.125442,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 65534
  Primary group is 65534 and contains 0 supplementary groups
[2012/10/07 15:53:45.125549,  5] smbd/uid.c:317(change_to_user_internal)
  Impersonated user: uid=(0,65534), gid=(0,65534)
[2012/10/07 15:53:45.125629,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/10/07 15:53:45.125697,  5] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2012/10/07 15:53:45.125760,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2012/10/07 15:53:45.125855,  5] smbd/uid.c:400(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2012/10/07 15:53:45.125943,  3] smbd/service.c:1114(make_connection_snum)
  father (192.168.1.180) connect to service IPC$ initially as user nobody (uid=65534, gid=65534) (pid 9132)
[2012/10/07 15:53:45.129746,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0
[2012/10/07 15:53:45.129870,  5] ../libcli/security/security_token.c:63(security_token_debug)
  Security token SIDs (7):
    SID[  0]: S-1-5-21-4247409455-2685806330-4099132636-501
    SID[  1]: S-1-5-21-4247409455-2685806330-4099132636-513
    SID[  2]: S-1-5-21-4247409455-2685806330-4099132636-546
    SID[  3]: S-1-1-0
    SID[  4]: S-1-5-2
    SID[  5]: S-1-5-32-546
    SID[  6]: S-1-22-1-65534
   Privileges (0x               0):
   Rights (0x               0):
[2012/10/07 15:53:45.130190,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 65534
  Primary group is 65534 and contains 0 supplementary groups
[2012/10/07 15:53:45.130297,  5] smbd/uid.c:317(change_to_user_internal)
  Impersonated user: uid=(0,65534), gid=(0,65534)
[2012/10/07 15:53:45.130373,  4] smbd/vfs.c:780(vfs_ChDir)
  vfs_ChDir to /tmp
[2012/10/07 15:53:45.132106,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:53:45.135325,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:53:45.136808,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:53:58.563694,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:53:58.563839,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/10/07 15:53:58.563912,  5] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2012/10/07 15:53:58.563978,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2012/10/07 15:53:58.564095,  5] smbd/uid.c:400(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2012/10/07 15:53:58.564175,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/10/07 15:53:58.564242,  5] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2012/10/07 15:53:58.564303,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2012/10/07 15:53:58.564392,  5] smbd/uid.c:400(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2012/10/07 15:53:58.564457,  3] smbd/service.c:1378(close_cnum)
  father (192.168.1.180) closed connection to service IPC$
[2012/10/07 15:53:58.564533,  3] smbd/connection.c:35(yield_connection)
  Yielding connection to IPC$
[2012/10/07 15:53:58.564630,  4] smbd/vfs.c:780(vfs_ChDir)
  vfs_ChDir to /
[2012/10/07 15:53:58.564709,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/10/07 15:53:58.564774,  5] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2012/10/07 15:53:58.564834,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2012/10/07 15:53:58.564925,  5] smbd/uid.c:400(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
======================================================================

2. I press key Delete and i get next messages in log:
======================================================================
[2012/10/07 15:54:36.158590,  5] smbd/process.c:2474(housekeeping_fn)
  housekeeping
[2012/10/07 15:54:36.158732,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/10/07 15:54:36.158802,  5] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2012/10/07 15:54:36.158866,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2012/10/07 15:54:36.158964,  5] smbd/uid.c:400(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2012/10/07 15:54:36.159101,  6] param/loadparm.c:7490(lp_file_list_changed)
  lp_file_list_changed()
  file /etc/samba/smb.conf -> /etc/samba/smb.conf  last mod_time: Sun Oct  7 15:28:41 2012

[2012/10/07 15:54:38.266668,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0
[2012/10/07 15:54:38.266809,  5] ../libcli/security/security_token.c:63(security_token_debug)
  Security token SIDs (7):
    SID[  0]: S-1-5-21-4247409455-2685806330-4099132636-501
    SID[  1]: S-1-5-21-4247409455-2685806330-4099132636-513
    SID[  2]: S-1-5-21-4247409455-2685806330-4099132636-546
    SID[  3]: S-1-1-0
    SID[  4]: S-1-5-2
    SID[  5]: S-1-5-32-546
    SID[  6]: S-1-22-1-65534
   Privileges (0x               0):
   Rights (0x               0):
[2012/10/07 15:54:38.267120,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 65534
  Primary group is 65534 and contains 0 supplementary groups
[2012/10/07 15:54:38.267226,  5] smbd/uid.c:317(change_to_user_internal)
  Impersonated user: uid=(0,65534), gid=(0,65534)
[2012/10/07 15:54:38.267301,  4] smbd/vfs.c:780(vfs_ChDir)
  vfs_ChDir to /disk15/hlam
[2012/10/07 15:54:38.267389,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent"
[2012/10/07 15:54:38.267477,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent] [/disk15/hlam]
[2012/10/07 15:54:38.267555,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent reduced to /disk15/hlam/torrent
[2012/10/07 15:54:38.267630,  5] smbd/files.c:140(file_new)
  allocated file structure 11672, fnum = 15768 (9 used)
[2012/10/07 15:54:38.267711,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(torrent) returning 0766
[2012/10/07 15:54:38.267782,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent
[2012/10/07 15:54:38.267848,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:54:38.267914,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:54:38.268015,  4] smbd/open.c:2069(open_file_ntcreate)
  calling open_file with flags=0x0 flags2=0x0 mode=0766, access_mask = 0x100081, open_access_mask = 0x100081
[2012/10/07 15:54:38.268133,  5] smbd/files.c:482(file_free)
  freed files structure 15768 (8 used)
[2012/10/07 15:54:38.268211,  5] smbd/open.c:2599(open_directory)
  open_directory: opening directory torrent, access_mask = 0x100081, share_access = 0x7 create_options = 0x0, create_disposition = 0x1, file_attributes = 0x10
[2012/10/07 15:54:38.268336,  5] smbd/files.c:140(file_new)
  allocated file structure 11673, fnum = 15769 (9 used)
[2012/10/07 15:54:38.268492,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent
[2012/10/07 15:54:38.268581,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:54:38.268650,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:54:38.270562,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:54:38.270992,  5] smbd/files.c:482(file_free)
  freed files structure 15769 (8 used)
======================================================================
..... and i het wondows-message "Yes" or "No"

3. I press Yes and I get next message in log:
======================================================================
[2012/10/07 15:55:27.613244,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.613410,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]"
[2012/10/07 15:55:27.613508,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]] [/disk15/hlam]
[2012/10/07 15:55:27.613593,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club] reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]
[2012/10/07 15:55:27.613673,  5] smbd/files.c:140(file_new)
  allocated file structure 11674, fnum = 15770 (9 used)
[2012/10/07 15:55:27.613757,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(torrent/LinuxSecurity_[NNM-Club]) returning 0766
[2012/10/07 15:55:27.613831,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]
[2012/10/07 15:55:27.613900,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.613968,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.614064,  4] smbd/open.c:2069(open_file_ntcreate)
  calling open_file with flags=0x0 flags2=0x0 mode=0766, access_mask = 0x100081, open_access_mask = 0x100081
[2012/10/07 15:55:27.614165,  5] smbd/files.c:482(file_free)
  freed files structure 15770 (8 used)
[2012/10/07 15:55:27.614242,  5] smbd/open.c:2599(open_directory)
  open_directory: opening directory torrent/LinuxSecurity_[NNM-Club], access_mask = 0x100081, share_access = 0x7 create_options = 0x0, create_disposition = 0x1, file_attributes = 0x10
[2012/10/07 15:55:27.614374,  5] smbd/files.c:140(file_new)
  allocated file structure 11675, fnum = 15771 (9 used)
[2012/10/07 15:55:27.614587,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]
[2012/10/07 15:55:27.614690,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.614761,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.616992,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.617394,  5] smbd/dir.c:439(dptr_create)
  dptr_create dir=torrent/LinuxSecurity_[NNM-Club]
[2012/10/07 15:55:27.617725,  3] smbd/dir.c:578(dptr_create)
  creating new dirptr 0 for path torrent/LinuxSecurity_[NNM-Club], expect_close = 0
[2012/10/07 15:55:27.618041,  8] smbd/smb2_find.c:369(smbd_smb2_find_send)
  smbd_smb2_find_send: dirpath=<torrent/LinuxSecurity_[NNM-Club]> dontdescend=<>, in_output_buffer_length = 65528
[2012/10/07 15:55:27.618390,  6] smbd/dir.c:969(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry: dirptr 0xb9391868 now at offset 0
[2012/10/07 15:55:27.618785,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]/.
[2012/10/07 15:55:27.619103,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.619490,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.619777,  3] smbd/dir.c:1041(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry mask=[*] found torrent/LinuxSecurity_[NNM-Club]/. fname=. (.)
[2012/10/07 15:55:27.620178,  6] smbd/dir.c:969(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry: dirptr 0xb9391868 now at offset -2147483648
[2012/10/07 15:55:27.620479,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]/..
[2012/10/07 15:55:27.620740,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.621118,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.621449,  3] smbd/dir.c:1041(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry mask=[*] found torrent/LinuxSecurity_[NNM-Club]/.. fname=.. (..)
[2012/10/07 15:55:27.621803,  6] smbd/dir.c:969(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry: dirptr 0xb9391868 now at offset 2147483647
[2012/10/07 15:55:27.622136,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:55:27.622443,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.622789,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.623094,  3] smbd/dir.c:1041(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry mask=[*] found torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322 fname=Codec_Lagarith_1322 (Codec_Lagarith_1322)
[2012/10/07 15:55:27.623400,  6] smbd/dir.c:969(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry: dirptr 0xb9391868 now at offset -1
[2012/10/07 15:55:27.623847,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.624223,  8] smbd/smb2_find.c:369(smbd_smb2_find_send)
  smbd_smb2_find_send: dirpath=<torrent/LinuxSecurity_[NNM-Club]> dontdescend=<>, in_output_buffer_length = 120
[2012/10/07 15:55:27.624598,  6] smbd/dir.c:969(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry: dirptr 0xb9391868 now at offset -1
[2012/10/07 15:55:27.628614,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.629008,  4] smbd/dir.c:257(dptr_close_internal)
  closing dptr key 0
[2012/10/07 15:55:27.629343,  5] smbd/files.c:482(file_free)
  freed files structure 15771 (8 used)
[2012/10/07 15:55:27.632254,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.632624,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322"
[2012/10/07 15:55:27.632966,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322] [/disk15/hlam]
[2012/10/07 15:55:27.633302,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322 reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:55:27.633630,  5] smbd/files.c:140(file_new)
  allocated file structure 11676, fnum = 15772 (9 used)
[2012/10/07 15:55:27.633991,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322) returning 0766
[2012/10/07 15:55:27.634310,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:55:27.634662,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.635006,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.635367,  5] smbd/files.c:482(file_free)
  freed files structure 15772 (8 used)
[2012/10/07 15:55:27.638400,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.638793,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322"
[2012/10/07 15:55:27.639133,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322] [/disk15/hlam]
[2012/10/07 15:55:27.639467,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322 reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:55:27.639810,  5] smbd/files.c:140(file_new)
  allocated file structure 11677, fnum = 15773 (9 used)
[2012/10/07 15:55:27.640172,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322) returning 0766
[2012/10/07 15:55:27.640526,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:55:27.640839,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.641147,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.641510,  5] smbd/files.c:482(file_free)
  freed files structure 15773 (8 used)
[2012/10/07 15:55:27.645611,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.646025,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file ""
[2012/10/07 15:55:27.646355,  5] smbd/filename.c:291(unix_convert)
  conversion finished "" -> .
[2012/10/07 15:55:27.646706,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [.] [/disk15/hlam]
[2012/10/07 15:55:27.647035,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: . reduced to /disk15/hlam
[2012/10/07 15:55:27.647352,  5] smbd/files.c:140(file_new)
  allocated file structure 11678, fnum = 15774 (9 used)
[2012/10/07 15:55:27.647675,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(.) returning 0766
[2012/10/07 15:55:27.647989,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: .
[2012/10/07 15:55:27.648320,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.648630,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.648976,  4] smbd/open.c:2069(open_file_ntcreate)
  calling open_file with flags=0x0 flags2=0x0 mode=0766, access_mask = 0x120089, open_access_mask = 0x120089
[2012/10/07 15:55:27.649311,  5] smbd/files.c:482(file_free)
  freed files structure 15774 (8 used)
[2012/10/07 15:55:27.649577,  5] smbd/open.c:2599(open_directory)
  open_directory: opening directory ., access_mask = 0x120089, share_access = 0x7 create_options = 0x0, create_disposition = 0x1, file_attributes = 0x10
[2012/10/07 15:55:27.649906,  5] smbd/files.c:140(file_new)
  allocated file structure 11679, fnum = 15775 (9 used)
[2012/10/07 15:55:27.650382,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: .
[2012/10/07 15:55:27.650748,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.651058,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.657057,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.657644,  3] smbd/trans2.c:2951(smbd_do_qfsinfo)
  smbd_do_qfsinfo: level = 1001
[2012/10/07 15:55:27.657991,  5] smbd/trans2.c:3093(smbd_do_qfsinfo)
  smbd_do_qfsinfo : SMB_QUERY_FS_VOLUME_INFO namelen = 9, vol=Хлам$ serv=Хлам$
[2012/10/07 15:55:27.658360,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.658756,  3] smbd/trans2.c:2951(smbd_do_qfsinfo)
  smbd_do_qfsinfo: level = 1005
[2012/10/07 15:55:27.664006,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.664377,  3] smbd/trans2.c:2951(smbd_do_qfsinfo)
  smbd_do_qfsinfo: level = 1007
[2012/10/07 15:55:27.664905,  3] lib/sysquotas.c:432(sys_get_quota)
  sys_get_vfs_quota() failed for mntpath[/disk15] bdev[/dev/sdb1] qtype[2] id[65534]: Операция не позволяется
[2012/10/07 15:55:27.665431,  3] lib/sysquotas.c:432(sys_get_quota)
  sys_get_vfs_quota() failed for mntpath[/disk15] bdev[/dev/sdb1] qtype[4] id[65534]: Операция не позволяется
[2012/10/07 15:55:27.665778,  5] smbd/trans2.c:3153(smbd_do_qfsinfo)
  smbd_do_qfsinfo : SMB_QUERY_FS_FULL_SIZE_INFO bsize=1024, cSectorUnit=2, cBytesSector=512, cUnitTotal=1463714252, cUnitAvail=1027759820
[2012/10/07 15:55:27.669044,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.669493,  5] smbd/files.c:482(file_free)
  freed files structure 15775 (8 used)
[2012/10/07 15:55:27.672518,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/10/07 15:55:27.672871,  5] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2012/10/07 15:55:27.673174,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2012/10/07 15:55:27.673629,  5] smbd/uid.c:400(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2012/10/07 15:55:27.677726,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0
[2012/10/07 15:55:27.678118,  5] ../libcli/security/security_token.c:63(security_token_debug)
  Security token SIDs (7):
    SID[  0]: S-1-5-21-4247409455-2685806330-4099132636-501
    SID[  1]: S-1-5-21-4247409455-2685806330-4099132636-513
    SID[  2]: S-1-5-21-4247409455-2685806330-4099132636-546
    SID[  3]: S-1-1-0
    SID[  4]: S-1-5-2
    SID[  5]: S-1-5-32-546
    SID[  6]: S-1-22-1-65534
   Privileges (0x               0):
   Rights (0x               0):
[2012/10/07 15:55:27.679772,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 65534
  Primary group is 65534 and contains 0 supplementary groups
[2012/10/07 15:55:27.680256,  5] smbd/uid.c:317(change_to_user_internal)
  Impersonated user: uid=(0,65534), gid=(0,65534)
[2012/10/07 15:55:27.680606,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]"
[2012/10/07 15:55:27.680959,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]] [/disk15/hlam]
[2012/10/07 15:55:27.681297,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club] reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]
[2012/10/07 15:55:27.681724,  5] smbd/open.c:2599(open_directory)
  open_directory: opening directory torrent/LinuxSecurity_[NNM-Club], access_mask = 0x110080, share_access = 0x7 create_options = 0x200001, create_disposition = 0x1, file_attributes = 0x10
[2012/10/07 15:55:27.682133,  5] smbd/files.c:140(file_new)
  allocated file structure 11680, fnum = 15776 (9 used)
[2012/10/07 15:55:27.682613,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]
[2012/10/07 15:55:27.682965,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.683299,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.683799,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.684212,  5] smbd/files.c:482(file_free)
  freed files structure 15764 (8 used)
[2012/10/07 15:55:27.687521,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.707299,  3] smbd/trans2.c:7627(smbd_do_setfilepathinfo)
  smbd_do_setfilepathinfo: torrent/LinuxSecurity_[NNM-Club] (fnum 15776) info_level=1013 totdata=1
[2012/10/07 15:55:27.707772,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]
[2012/10/07 15:55:27.708091,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.708401,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.710652,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.711047,  5] smbd/files.c:482(file_free)
  freed files structure 15776 (7 used)
[2012/10/07 15:55:27.714918,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.715288,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322"
[2012/10/07 15:55:27.715626,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322] [/disk15/hlam]
[2012/10/07 15:55:27.715959,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322 reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:55:27.716357,  5] smbd/open.c:2599(open_directory)
  open_directory: opening directory torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322, access_mask = 0x110080, share_access = 0x7 create_options = 0x200001, create_disposition = 0x1, file_attributes = 0x10
[2012/10/07 15:55:27.716764,  5] smbd/files.c:140(file_new)
  allocated file structure 11681, fnum = 15777 (8 used)
[2012/10/07 15:55:27.717164,  5] smbd/files.c:482(file_free)
  freed files structure 15777 (7 used)
[2012/10/07 15:55:27.721262,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.721634,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322"
[2012/10/07 15:55:27.721980,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322] [/disk15/hlam]
[2012/10/07 15:55:27.722317,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322 reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:55:27.722752,  5] smbd/files.c:140(file_new)
  allocated file structure 11682, fnum = 15778 (8 used)
[2012/10/07 15:55:27.723104,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322) returning 0766
[2012/10/07 15:55:27.723423,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:55:27.723736,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.724044,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.724440,  5] smbd/files.c:482(file_free)
  freed files structure 15778 (7 used)
[2012/10/07 15:55:27.729209,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.729583,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322/desktop.ini"
[2012/10/07 15:55:27.729930,  5] smbd/filename.c:416(unix_convert)
  unix_convert begin: name = torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322/desktop.ini, dirpath = torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322, start = desktop.ini
[2012/10/07 15:55:27.730273,  5] smbd/filename.c:184(check_parent_exists)
  check_parent_exists: name = torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322/desktop.ini, dirpath = torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322, start = desktop.ini
[2012/10/07 15:55:27.730657,  5] smbd/filename.c:781(unix_convert)
  New file desktop.ini
[2012/10/07 15:55:27.730983,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322/desktop.ini] [/disk15/hlam]
[2012/10/07 15:55:27.731367,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322/desktop.ini reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322/desktop.ini
[2012/10/07 15:55:27.731697,  5] smbd/files.c:140(file_new)
  allocated file structure 11683, fnum = 15779 (8 used)
[2012/10/07 15:55:27.732025,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322/desktop.ini) returning 0766
[2012/10/07 15:55:27.732346,  5] smbd/open.c:1690(open_file_ntcreate)
  open_file_ntcreate: FILE_OPEN requested for file torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322/desktop.ini and file doesn't exist.
[2012/10/07 15:55:27.732697,  5] smbd/files.c:482(file_free)
  freed files structure 15779 (7 used)
[2012/10/07 15:55:27.736343,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.736746,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322"
[2012/10/07 15:55:27.737089,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322] [/disk15/hlam]
[2012/10/07 15:55:27.737441,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322 reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:55:27.737795,  5] smbd/files.c:140(file_new)
  allocated file structure 11684, fnum = 15780 (8 used)
[2012/10/07 15:55:27.738125,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322) returning 0766
[2012/10/07 15:55:27.738464,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:55:27.738808,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.739116,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.739509,  5] smbd/files.c:482(file_free)
  freed files structure 15780 (7 used)
[2012/10/07 15:55:27.742238,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:55:27.742621,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322"
[2012/10/07 15:55:27.742972,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322] [/disk15/hlam]
[2012/10/07 15:55:27.743309,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322 reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:55:27.743635,  5] smbd/files.c:140(file_new)
  allocated file structure 11685, fnum = 15781 (8 used)
[2012/10/07 15:55:27.743986,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322) returning 0766
[2012/10/07 15:55:27.744310,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:55:27.744625,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:55:27.744962,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:55:27.745356,  5] smbd/files.c:482(file_free)
  freed files structure 15781 (7 used)
  housekeeping
[2012/10/07 15:55:36.167409,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2012/10/07 15:55:36.167479,  5] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2012/10/07 15:55:36.167566,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2012/10/07 15:55:36.167675,  5] smbd/uid.c:400(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
======================================================================
...... and i get error message
http://www.k-max.name/wp-content/uploads/2012/10/samba-error.png

4. I try input to directory \\MEDIA\Хлам$\torrent\LinuxSecurity_[NNM-Club]\Codec_Lagarith_1322 and I get error message
http://www.k-max.name/wp-content/uploads/2012/10/samba-error2.png
and in log
=======================================================================
[2012/10/07 15:59:47.191733,  4] smbd/sec_ctx.c:314(set_sec_ctx)
  setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0
[2012/10/07 15:59:47.191878,  5] ../libcli/security/security_token.c:63(security_token_debug)
  Security token SIDs (7):
    SID[  0]: S-1-5-21-4247409455-2685806330-4099132636-501
    SID[  1]: S-1-5-21-4247409455-2685806330-4099132636-513
    SID[  2]: S-1-5-21-4247409455-2685806330-4099132636-546
    SID[  3]: S-1-1-0
    SID[  4]: S-1-5-2
    SID[  5]: S-1-5-32-546
    SID[  6]: S-1-22-1-65534
   Privileges (0x               0):
   Rights (0x               0):
[2012/10/07 15:59:47.192195,  5] auth/token_util.c:527(debug_unix_user_token)
  UNIX token of user 65534
  Primary group is 65534 and contains 0 supplementary groups
[2012/10/07 15:59:47.192300,  5] smbd/uid.c:317(change_to_user_internal)
  Impersonated user: uid=(0,65534), gid=(0,65534)
[2012/10/07 15:59:47.192373,  4] smbd/vfs.c:780(vfs_ChDir)
  vfs_ChDir to /disk15/hlam
[2012/10/07 15:59:47.192461,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322"
[2012/10/07 15:59:47.192547,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322] [/disk15/hlam]
[2012/10/07 15:59:47.192630,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322 reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:59:47.192701,  5] smbd/open.c:2599(open_directory)
  open_directory: opening directory torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322, access_mask = 0x100081, share_access = 0x7 create_options = 0x1, create_disposition = 0x1, file_attributes = 0x10
[2012/10/07 15:59:47.192832,  5] smbd/files.c:140(file_new)
  allocated file structure 11697, fnum = 15793 (10 used)
[2012/10/07 15:59:47.192980,  5] smbd/files.c:482(file_free)
  freed files structure 15793 (9 used)
[2012/10/07 15:59:47.202039,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:59:47.202414,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322"
[2012/10/07 15:59:47.202779,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322] [/disk15/hlam]
[2012/10/07 15:59:47.203115,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322 reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:59:47.203465,  5] smbd/files.c:140(file_new)
  allocated file structure 11698, fnum = 15794 (10 used)
[2012/10/07 15:59:47.203794,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322) returning 0766
[2012/10/07 15:59:47.204108,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:59:47.204405,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:59:47.204752,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:59:47.205074,  5] smbd/files.c:482(file_free)
  freed files structure 15794 (9 used)
[2012/10/07 15:59:47.208779,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:59:47.209155,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322"
[2012/10/07 15:59:47.209556,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322] [/disk15/hlam]
[2012/10/07 15:59:47.209910,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322 reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:59:47.210235,  5] smbd/files.c:140(file_new)
  allocated file structure 11699, fnum = 15795 (10 used)
[2012/10/07 15:59:47.210606,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322) returning 0766
[2012/10/07 15:59:47.210934,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:59:47.211274,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:59:47.211580,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:59:47.211983,  5] smbd/files.c:482(file_free)
  freed files structure 15795 (9 used)
[2012/10/07 15:59:47.216002,  4] smbd/uid.c:351(change_to_user)
  Skipping user change - already user
[2012/10/07 15:59:47.216380,  5] smbd/filename.c:257(unix_convert)
  unix_convert called on file "torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322"
[2012/10/07 15:59:47.216723,  3] smbd/vfs.c:905(check_reduced_name)
  check_reduced_name [torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322] [/disk15/hlam]
[2012/10/07 15:59:47.217058,  3] smbd/vfs.c:1039(check_reduced_name)
  check_reduced_name: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322 reduced to /disk15/hlam/torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:59:47.217464,  5] smbd/files.c:140(file_new)
  allocated file structure 11700, fnum = 15796 (10 used)
[2012/10/07 15:59:47.217809,  3] smbd/dosmode.c:159(unix_mode)
  unix_mode(torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322) returning 0766
[2012/10/07 15:59:47.218151,  8] smbd/dosmode.c:621(dos_mode)
  dos_mode: torrent/LinuxSecurity_[NNM-Club]/Codec_Lagarith_1322
[2012/10/07 15:59:47.218465,  8] smbd/dosmode.c:199(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2012/10/07 15:59:47.218797,  8] smbd/dosmode.c:672(dos_mode)
  dos_mode returning d
[2012/10/07 15:59:47.219190,  5] smbd/files.c:482(file_free)
  freed files structure 15796 (9 used)
=======================================================================

5. I restart samba, directory Codec_Lagarith_1322 was disappeared and directory LinuxSecurity_[NNM-Club] was successfully removed.
And in log i get next message:
=======================================================================
=======================================================================



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-486
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages samba depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.46
ii  dpkg                   1.16.8
ii  libacl1                2.2.51-8
ii  libattr1               1:2.4.46-8
ii  libc6                  2.13-35
ii  libcap2                1:2.22-1.2
ii  libcomerr2             1.42.5-1
ii  libcups2               1.5.3-1
ii  libgssapi-krb5-2       1.10.1+dfsg-2
ii  libk5crypto3           1.10.1+dfsg-2
ii  libkrb5-3              1.10.1+dfsg-2
ii  libldap-2.4-2          2.4.31-1
ii  libpam-modules         1.1.3-7.1
ii  libpam-runtime         1.1.3-7.1
ii  libpam0g               1.1.3-7.1
ii  libpopt0               1.16-7
ii  libtalloc2             2.0.7+git20120207-1
ii  libtdb1                1.2.10-2
ii  libwbclient0           2:3.6.6-3
ii  lsb-base               4.1+Debian7
ii  procps                 1:3.3.3-2
ii  samba-common           2:3.6.6-3
ii  update-inetd           4.43
ii  zlib1g                 1:1.2.7.dfsg-13

Versions of packages samba recommends:
ii  logrotate  3.8.1-4
ii  tdb-tools  1.2.10-2

Versions of packages samba suggests:
pn  ctdb                              <none>
pn  ldb-tools                         <none>
pn  openbsd-inetd | inet-superserver  <none>
pn  smbldap-tools                     <none>

-- debconf information:
  samba/run_mode: daemons
  samba/generate_smbpasswd: true
  samba-common/title:



More information about the Pkg-samba-maint mailing list