เรื่อง log ของ smb นะครับ
ผมได้ลอง VFS แล้วนะครับ แต่ยังงงกับเรื่อง log อยู่ว่ามันเก็บอะไรบ้าง
อันนี้ใน smb.conf นะครับ เอามาแค่บางส่วน
log level = 0 vfs:10
# log file = /var/log/samba/%m.log
# all log information in one file
log file = /var/log/samba/smblog.txt
[00-Antivirus]
comment = Public Share Files
path = /usr/data/00-Antivirus
vfs objects= audit recycle
writable = yes
read list =
browseable = yes
guest ok = yes
create mask = 0777
directory mask = 0775
ส่วนอันนี้ก็ log file มันครับ
[2008/06/19 12:39:01, 5] smbd/vfs.c:vfs_init_custom(174)
Checking operation #50 (type 50, layer 0)
Making operation type 50 opaque [module /[Default VFS]/]
Accepting operation type 50 from module /[Default VFS]/
[2008/06/19 12:39:01, 5] smbd/vfs.c:vfs_init_custom(174)
Checking operation #51 (type 51, layer 0)
Making operation type 51 opaque [module /[Default VFS]/]
Accepting operation type 51 from module /[Default VFS]/
[2008/06/19 12:39:01, 5] smbd/vfs.c:vfs_init_custom(174)
Checking operation #52 (type 52, layer 0)
Making operation type 52 opaque [module /[Default VFS]/]
Accepting operation type 52 from module /[Default VFS]/
[2008/06/19 12:39:01, 5] smbd/vfs.c:vfs_init_custom(174)
Checking operation #53 (type 53, layer 0)
Making operation type 53 opaque [module /[Default VFS]/]
Accepting operation type 53 from module /[Default VFS]/
[2008/06/19 12:39:01, 5] smbd/vfs.c:vfs_init_custom(174)
Checking operation #54 (type 54, layer 0)
Making operation type 54 opaque [module /[Default VFS]/]
Accepting operation type 54 from module /[Default VFS]/
[2008/06/19 12:39:01, 5] smbd/vfs.c:vfs_init_custom(174)
Checking operation #55 (type 55, layer 0)
Making operation type 55 opaque [module /[Default VFS]/]
Accepting operation type 55 from module /[Default VFS]/
[2008/06/19 12:39:01, 5] smbd/vfs.c:vfs_init_custom(174)
Checking operation #56 (type 56, layer 0)
Making operation type 56 opaque [module /[Default VFS]/]
Accepting operation type 56 from module /[Default VFS]/
[2008/06/19 12:39:01, 5] smbd/vfs.c:vfs_init_custom(174)
Checking operation #57 (type 57, layer 0)
Making operation type 57 opaque [module /[Default VFS]/]
Accepting operation type 57 from module /[Default VFS]/
[2008/06/19 12:39:01, 5] smbd/vfs.c:vfs_init_custom(174)
Checking operation #91 (type 91, layer 0)
Making operation type 91 opaque [module /[Default VFS]/]
Accepting operation type 91 from module /[Default VFS]/
[2008/06/19 12:39:01, 5] smbd/vfs.c:vfs_init_custom(174)
Checking operation #92 (type 92, layer 0)
Making operation type 92 opaque [module /[Default VFS]/]
Accepting operation type 92 from module /[Default VFS]/
[2008/06/19 12:39:01, 5] smbd/vfs.c:vfs_init_custom(174)
Checking operation #93 (type 93, layer 0)
Making operation type 93 opaque [module /[Default VFS]/]
Accepting operation type 93 from module /[Default VFS]/
[2008/06/19 12:39:01, 5] smbd/vfs.c:vfs_init_custom(174)
Checking operation #94 (type 94, layer 0)
Making operation type 94 opaque [module /[Default VFS]/]
Accepting operation type 94 from module /[Default VFS]/
[2008/06/19 12:39:01, 4] smbd/vfs.c:vfs_ChDir(665)
vfs_ChDir to /usr/data/02-Sale
[2008/06/19 12:39:01, 4] smbd/vfs.c:vfs_ChDir(665)
vfs_ChDir to /tmp
[2008/06/19 12:39:01, 4] smbd/vfs.c:vfs_ChDir(665)
vfs_ChDir to /usr/data/02-Sale
[2008/06/19 12:39:01, 4] smbd/vfs.c:vfs_ChDir(665)
vfs_ChDir to /tmp
[2008/06/19 12:39:01, 4] smbd/vfs.c:vfs_ChDir(665)
vfs_ChDir to /usr/data/02-Sale
[2008/06/19 12:39:01, 4] smbd/vfs.c:vfs_ChDir(665)
vfs_ChDir to /tmp
[2008/06/19 12:39:01, 4] smbd/vfs.c:vfs_ChDir(665)
vfs_ChDir to /usr/data/02-Sale
[2008/06/19 12:39:06, 10] smbd/vfs.c:vfs_set_filelen(515)
vfs_set_filelen: ftruncate 202-tc/4BA9E000 to len 512
[2008/06/19 12:39:06, 10] smbd/vfs.c:vfs_allocate_file_space(453)
vfs_allocate_file_space: file 202-tc/4BA9E000, len 1048576
[2008/06/19 12:39:06, 10] smbd/vfs.c:vfs_set_filelen(515)
vfs_set_filelen: ftruncate 202-tc/4BA9E000 to len 9216
[2008/06/19 12:39:06, 10] smbd/vfs.c:vfs_allocate_file_space(453)
vfs_allocate_file_space: file 202-tc/4BA9E000, len 1048576
[2008/06/19 12:39:06, 10] smbd/vfs.c:vfs_set_filelen(515)
vfs_set_filelen: ftruncate 202-tc/4BA9E000 to len 13312
[2008/06/19 12:39:06, 10] smbd/vfs.c:vfs_allocate_file_space(453)
vfs_allocate_file_space: file 202-tc/4BA9E000, len 1048576
[2008/06/19 12:39:06, 10] smbd/vfs.c:vfs_allocate_file_space(453)
vfs_allocate_file_space: file 202-tc/4BA9E000, len 1048576
[2008/06/19 12:39:06, 10] smbd/vfs.c:vfs_set_filelen(515)
vfs_set_filelen: ftruncate 202-tc/4BA9E000 to len 17408
[2008/06/19 12:39:06, 10] smbd/vfs.c:vfs_allocate_file_space(453)
vfs_allocate_file_space: file 202-tc/4BA9E000, len 1048576
[2008/06/19 12:39:07, 4] smbd/vfs.c:vfs_ChDir(665)
vfs_ChDir to /tmp
ก็เลยยังงงอยู่ครับว่า มันดูตรงไหนครับว่าใครทำอะไรกับไฟล์ไหนครับ
หรือผมยัง set อะไรไม่ถูกหรือเปล่าครับ
ยังไงคงต้องรบกวนคุณจักรนันท์ อีกทีนะครับ









Posts: 20
Joined: 23-07-2007