View previous topic :: View next topic |
Author |
Message |
[clu] Apprentice
Joined: 23 Feb 2004 Posts: 160 Location: 127.0.0.1
|
Posted: Tue Nov 08, 2005 12:28 pm Post subject: samba-3.0.14a-r2 + smb_spider |
|
|
samba-3.0.14a-r2
smb.conf:
=================cut=================
[Обмен]
comment = Exchange directory
path = /data/Obmen
vfs object = smb_spider
browseable = Yes
writeable =yes
guest ok =yes
directory mask = 0777
create mask = 0666
veto files = /*.mp*/*.avi/*.divx/
delete veto files=yes
=================cut=================
# cp smb_spider.so.11 /usr/lib/samba/vfs/smb_spider.so
#ls -l /usr/lib/samba/vfs/smb_spider.so
-rw-r--r-- 1 root root 114852 Ноя 8 11:20 /usr/lib/samba/vfs/smb_spider.so
#killall -HUP smbd
# smbclient //fileserver/Обмен
Password:
Anonymous login successful
Domain=[XXX] OS=[Unix] Server=[Samba 3.0.7]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
# tail -n 80 /var/log/samba/log.sysadm -n 100
--------------cut---------------------
[2005/11/08 12:12:24, 3] smbd/process.c:process_smb(1092)
Transaction 7 of length 92
[2005/11/08 12:12:24, 3] smbd/process.c:switch_message(887)
switch message SMBtconX (pid 11086) conn 0x0
[2005/11/08 12:12:24, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/11/08 12:12:24, 3] smbd/service.c:make_connection_snum(472)
Connect path is '/data/Obmen' for service [Обмен]
[2005/11/08 12:12:24, 3] lib/util_seaccess.c:se_access_check(251)
[2005/11/08 12:12:24, 3] lib/util_seaccess.c:se_access_check(252)
se_access_check: user sid is S-1-5-21-3952191755-2661343727-433355809-3000
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1201
se_access_check: also S-1-1-0
se_access_check: also S-1-5-2
se_access_check: also S-1-5-11
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1021
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1033
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1881
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1891
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1893
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1913
[2005/11/08 12:12:24, 3] smbd/vfs.c:vfs_init_default(203)
Initialising default vfs hooks
[2005/11/08 12:12:24, 3] smbd/vfs.c:vfs_init_custom(229)
Initialising custom vfs hooks from [smb_spider]
[2005/11/08 12:12:24, 2] lib/module.c:do_smb_load_module(63)
Module '/usr/lib/samba/vfs/smb_spider.so' loaded
[2005/11/08 12:12:24, 0] smbd/vfs.c:vfs_init_custom(256)
Can't find a vfs module [smb_spider]
[2005/11/08 12:12:24, 0] smbd/vfs.c:smbd_vfs_init(319)
smbd_vfs_init: vfs_init_custom failed for smb_spider
[2005/11/08 12:12:24, 0] smbd/service.c:make_connection_snum(517)
vfs_init failed for service Обмен
[2005/11/08 12:12:24, 3] smbd/error.c:error_packet(129)
error packet at smbd/reply.c(416) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME
[2005/11/08 12:12:25, 3] smbd/process.c:process_smb(1092)
Transaction 8 of length 92
[2005/11/08 12:12:25, 3] smbd/process.c:switch_message(887)
switch message SMBtconX (pid 11086) conn 0x0
[2005/11/08 12:12:25, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/11/08 12:12:25, 3] smbd/service.c:make_connection_snum(472)
Connect path is '/data/Obmen' for service [Обмен]
[2005/11/08 12:12:25, 3] lib/util_seaccess.c:se_access_check(251)
[2005/11/08 12:12:25, 3] lib/util_seaccess.c:se_access_check(252)
se_access_check: user sid is S-1-5-21-3952191755-2661343727-433355809-3000
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1201
se_access_check: also S-1-1-0
se_access_check: also S-1-5-2
se_access_check: also S-1-5-11
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1021
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1033
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1881
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1891
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1893
se_access_check: also S-1-5-21-3952191755-2661343727-433355809-1913
[2005/11/08 12:12:25, 3] smbd/vfs.c:vfs_init_default(203)
Initialising default vfs hooks
[2005/11/08 12:12:25, 3] smbd/vfs.c:vfs_init_custom(229)
Initialising custom vfs hooks from [smb_spider]
[2005/11/08 12:12:25, 2] lib/module.c:do_smb_load_module(63)
Module '/usr/lib/samba/vfs/smb_spider.so' loaded
[2005/11/08 12:12:25, 0] smbd/vfs.c:vfs_init_custom(256)
Can't find a vfs module [smb_spider]
[2005/11/08 12:12:25, 0] smbd/vfs.c:smbd_vfs_init(319)
smbd_vfs_init: vfs_init_custom failed for smb_spider
[2005/11/08 12:12:25, 0] smbd/service.c:make_connection_snum(517)
vfs_init failed for service Обмен
[2005/11/08 12:12:25, 3] smbd/error.c:error_packet(129)
error packet at smbd/reply.c(416) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME
[2005/11/08 12:12:35, 3] smbd/process.c:process_smb(1092)
Transaction 9 of length 43
[2005/11/08 12:12:35, 3] smbd/process.c:switch_message(887)
switch message SMBulogoffX (pid 11086) conn 0x0
[2005/11/08 12:12:35, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/11/08 12:12:35, 3] smbd/reply.c:reply_ulogoffX(1255)
ulogoffX vuid=100
[2005/11/08 12:12:35, 3] smbd/process.c:process_smb(1092)
Transaction 10 of length 39
[2005/11/08 12:12:35, 3] smbd/process.c:switch_message(887)
switch message SMBtdis (pid 11086) conn 0x840bba0
[2005/11/08 12:12:35, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/11/08 12:12:35, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/11/08 12:12:35, 3] smbd/service.c:close_cnum(837)
sysadm (10.10.0.7) closed connection to service IPC$
[2005/11/08 12:12:35, 3] smbd/connection.c:yield_connection(69)
Yielding connection to IPC$
[2005/11/08 12:12:35, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
--------------cut---------------------
кто сталкивался? |
|
Back to top |
|
|
ba l33t
Joined: 25 May 2003 Posts: 804
|
Posted: Tue Nov 08, 2005 1:08 pm Post subject: |
|
|
1) а что такое smb_spider?
2) а пересобрать его используя сорцы от этой версии самбы пробовал?
3) сделай strings /usr/lib/samba/vfs/smb_spider.so | grep 'vfs_.*_init' и запости результат |
|
Back to top |
|
|
[clu] Apprentice
Joined: 23 Feb 2004 Posts: 160 Location: 127.0.0.1
|
Posted: Tue Nov 08, 2005 3:16 pm Post subject: |
|
|
1) Quote: | 2. Что это такое
Samba SpIDer - это монитор файловых операций для файлового сервера
Samba. Реализован он как подключаемый модуль для нового vfs-интерфейса
(virtual file system) в Samba. Одновременно с этим он является клиентом
к Dr.Web Daemon, поэтому наличие настроенного и запущенного демона
обязательно.
---------
Соответствие версий smb_spider и Samba:
smb_spider.so.1 - Samba 2.2.1, 2.2.2
smb_spider.so.2 - Samba 2.2.3
smb_spider.so.3 - Samba 2.2.4, 2.2.5
smb_spider.so.4 - Samba 2.2.6 - 2.2.12
smb_spider.so.9 - Samba 3.0.0, 3.0.1
smb_spider.so.10 - Samba 3.0.2
smb_spider.so.11 - Samba 3.0.3 - 3.0.10
smb_spider.so.12 - Samba 3.0.11 - 3.0.14
smb_spider.so.13 - Samba 3.0.20
Для Samba, собранных с поддержкой LFS (например, на linux с
ядром 2.4 и glibc 2.2) выбрать модуль с суффиксом -lfs:
- для Samba 2.2.x:
скопировать соответствующий smb_spider в любой каталог (лучше в
каталог к демону), который указан как /FULL/PATH/TO/ в smb.conf.
- для Samba 3.0.x:
скопировать соответствующий smb_spider.so.NN в подкаталог lib/vfs
дерева, куда установлена Samba, и переименовать его в smb_spider.so.
Скопировать smb_spider.conf в каталог /etc/drweb (увы, пока нет
способа передать SpIDer'у даже путь к ini-файлу) и отредактировать
этот файл (описание файла конфигурации смотри в conf_file.rus).
Перезапустить Samba сервер.
|
# ls -l /usr/lib/samba/vfs/smb_spider.so
lrwxrwxrwx 1 root root 24 Ноя 8 17:10 /usr/lib/samba/vfs/smb_spider.so -> /opt/drweb/smb_spider.so
fileserver vfs # ls -l /opt/drweb/smb_spider.so
lrwxrwxrwx 1 root root 16 Ноя 8 17:10 /opt/drweb/smb_spider.so -> smb_spider.so.12
fileserver vfs # ls -l /opt/drweb/smb_spider.so.12
-rw-r--r-- 1 root root 114852 Сен 26 18:09 /opt/drweb/smb_spider.so.12
fileserver vfs #
3)
# strings /usr/lib/samba/vfs/smb_spider.so | grep vfs
drweb_vfs_ops
smb_register_vfs
Dr.Web (R) Samba VFS ver.4.33 vfs.%d has been loaded
сейчас занимаюсь пунктом №2 |
|
Back to top |
|
|
[clu] Apprentice
Joined: 23 Feb 2004 Posts: 160 Location: 127.0.0.1
|
Posted: Wed Nov 09, 2005 8:39 am Post subject: |
|
|
пересобрал. та же хрень |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|