LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-03-2017, 03:50 AM   #1
Butterbear
LQ Newbie
 
Registered: Jul 2017
Distribution: Debian
Posts: 2

Rep: Reputation: Disabled
9/Stretch - Missing vscan-clamav.so in samba-vfs-modules


Hi,

I'm attempting to set up Samba shares with the vscan-clamav VFS module, but apparently when installing samba-vfs-modules, vscan-clamav.so is not included, and access to shares is denied with the following log entry:

Code:
Error loading module '/usr/lib/i386-linux-gnu/samba/vfs/vscan-clamav.so': /usr/lib/i386-linux-gnu/samba/vfs/vscan-clamav.so: cannot open shared object file: No such file or directory
/usr/lib/i386-linux-gnu/samba/vfs contains the following after installation:
Code:
root@fs01:/etc/samba# ls -alh /usr/lib/i386-linux-gnu/samba/vfs/
total 1.0M
drwxr-xr-x 2 root root 4.0K Jun 30 11:39 .
drwxr-xr-x 9 root root  12K Jun 30 11:39 ..
-rw-r--r-- 1 root root  38K May 18 11:53 acl_tdb.so
-rw-r--r-- 1 root root  38K May 18 11:53 acl_xattr.so
-rw-r--r-- 1 root root  26K May 18 11:53 aio_fork.so
-rw-r--r-- 1 root root  14K May 18 11:53 aio_linux.so
-rw-r--r-- 1 root root  14K May 18 11:53 aio_pthread.so
-rw-r--r-- 1 root root 9.8K May 18 11:53 audit.so
-rw-r--r-- 1 root root  22K May 18 11:53 btrfs.so
-rw-r--r-- 1 root root  22K May 18 11:53 cap.so
-rw-r--r-- 1 root root  50K May 18 11:53 catia.so
-rw-r--r-- 1 root root  14K May 18 11:53 commit.so
-rw-r--r-- 1 root root 9.8K May 18 11:53 crossrename.so
-rw-r--r-- 1 root root 5.8K May 18 11:53 default_quota.so
-rw-r--r-- 1 root root 9.8K May 18 11:53 dfs_samba4.so
-rw-r--r-- 1 root root  14K May 18 11:53 dirsort.so
-rw-r--r-- 1 root root 9.8K May 18 11:53 expand_msdfs.so
-rw-r--r-- 1 root root  14K May 18 11:53 extd_audit.so
-rw-r--r-- 1 root root 5.8K May 18 11:53 fake_perms.so
-rw-r--r-- 1 root root 9.8K May 18 11:53 fileid.so
-rw-r--r-- 1 root root  94K May 18 11:53 fruit.so
-rw-r--r-- 1 root root  50K May 18 11:53 full_audit.so
-rw-r--r-- 1 root root 9.8K May 18 11:53 linux_xfs_sgid.so
-rw-r--r-- 1 root root  50K May 18 11:53 media_harmony.so
-rw-r--r-- 1 root root  14K May 18 11:53 netatalk.so
-rw-r--r-- 1 root root 5.8K May 18 11:53 offline.so
-rw-r--r-- 1 root root  18K May 18 11:53 posix_eadb.so
-rw-r--r-- 1 root root  14K May 18 11:53 preopen.so
-rw-r--r-- 1 root root 9.8K May 18 11:53 readahead.so
-rw-r--r-- 1 root root  18K May 18 11:53 readonly.so
-rw-r--r-- 1 root root  22K May 18 11:53 recycle.so
-rw-r--r-- 1 root root  70K May 18 11:53 shadow_copy2.so
-rw-r--r-- 1 root root  14K May 18 11:53 shadow_copy.so
-rw-r--r-- 1 root root 9.8K May 18 11:53 shell_snap.so
-rw-r--r-- 1 root root  26K May 18 11:53 streams_depot.so
-rw-r--r-- 1 root root  30K May 18 11:53 streams_xattr.so
-rw-r--r-- 1 root root  14K May 18 11:53 syncops.so
-rw-r--r-- 1 root root  54K May 18 11:53 time_audit.so
-rw-r--r-- 1 root root  50K May 18 11:53 unityed_media.so
-rw-r--r-- 1 root root 5.8K May 18 11:53 worm.so
-rw-r--r-- 1 root root  22K May 18 11:53 xattr_tdb.so
I installed the following packages from the standard Debian repositories:
Code:
samba
smbclient
samba-vfs-modules
smbldap-tools
samba-common-bin
clamav
clamav-base
clamav-daemon
clamav-freshclam
clamdscan
libclamav-dev
libclamunrar7
clamav-unofficial-sigs
clamfs
clamtk
clamav-docs
I cannot find a clear answer on how to fix this in a way that doesn't break with an apt-get upgrade (and preferably avoids manual recompiles).

What did I miss?
 
Old 07-03-2017, 01:51 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Try:
Code:
$ locate vscan-clamav.so
to find out if it (or anything like it) exists anywhere on the system. If you find it, make a symlink to
Code:
/usr/lib/i386-linux-gnu/samba/vfs/vscan-clamav.so
If it's a 64-bit system you might have to try:
Code:
$ dpkg --add-architecture i386
and run
Code:
$ apt-get -f install
to bring in 32-bit dependencies.
 
Old 07-05-2017, 03:59 AM   #3
Butterbear
LQ Newbie
 
Registered: Jul 2017
Distribution: Debian
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi AwesomeMachine, thank you for replying.

Quote:
Originally Posted by AwesomeMachine View Post
Try:
Code:
$ locate vscan-clamav.so
locate was not installed, so I installed it:
Code:
root@fs01:/etc/samba# locate vscan-clamav.so
bash: locate: command not found
root@fs01:/etc/samba# apt-get install locate
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  locate
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 215 kB of archives.
After this operation, 324 kB of additional disk space will be used.
Get:1 http://ftp.nluug.nl/debian stretch/main i386 locate i386 4.6.0+git+20161106-2 [215 kB]
Fetched 215 kB in 1s (123 kB/s)  
Selecting previously unselected package locate.
(Reading database ... 123597 files and directories currently installed.)
Preparing to unpack .../locate_4.6.0+git+20161106-2_i386.deb ...
Unpacking locate (4.6.0+git+20161106-2) ...
Setting up locate (4.6.0+git+20161106-2) ...
Processing triggers for man-db (2.7.6.1-2) ...
I understand this requires a database, so:
Code:
root@fs01:/etc/samba# updatedb
Followed by:
Code:
root@fs01:/etc/samba# locate vscan-clamav.so
root@fs01:/etc/samba#
Alas
This is not a 64-bit machine unfortunately, so I cannot try the other suggestion.

Last edited by Butterbear; 07-05-2017 at 04:01 AM. Reason: Correction
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba vscan problem leiw Linux - Networking 4 02-16-2007 12:37 AM
samba-vscan activeq Linux - Software 0 01-12-2007 05:27 AM
Samba,Vscan,Eudora johnw68 Linux - Software 1 01-07-2005 08:39 AM
samba-vscan clamav on Suse 9.2 Professional decafranky SUSE / openSUSE 0 11-08-2004 02:04 PM
Samba 3.0 Recycle VFS modules JPS Linux - Networking 0 06-24-2003 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration