Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Suggest HOWTO

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th April 2006, 11:03
HoUsECAt HoUsECAt is offline
Member
 
Join Date: Mar 2006
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default Virusscanning on samba shares?

Perhaps add a possibilty to add virusscan the samba shares to the tutorial from Small Business Samba Server on Ubuntu?
Reply With Quote
Sponsored Links
  #2  
Old 14th April 2006, 20:18
sbovisjb1 sbovisjb1 is offline
Senior Member
 
Join Date: Feb 2006
Posts: 176
Thanks: 0
Thanked 1 Time in 1 Post
Default Its already been done

http://ubuntuguide.org/#installclamav
Reply With Quote
  #3  
Old 3rd May 2006, 09:59
HoUsECAt HoUsECAt is offline
Member
 
Join Date: Mar 2006
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default

is it also possible to configure an instant virus-scanner? instead of a cron-job?
Reply With Quote
  #4  
Old 3rd June 2006, 16:03
thctlo thctlo is offline
Junior Member
 
Join Date: Jun 2006
Posts: 8
Thanks: 2
Thanked 1 Time in 1 Post
Default on access virus scanner and recyle bin for samba.

Quote:
Originally Posted by HoUsECAt
is it also possible to configure an instant virus-scanner? instead of a cron-job?
yes this is possible,

check out this link
this is my work, its not perfect, but you get far with this.
/snap

8.0 On-Access virus scanning on samba (samba-clamav)
8.1 Installing ClamAV

apt-get install clamav arj unzoo lha clamav-freshclam clamav-daemon
Configuring clamav-freshclam : Daemon
Choose a close mirror
Should clamd be notified after updates? Yes
8.2 get the sources ( samba & samba-vscan )

mkdir /usr/src/sources
cd /usr/src/sources

apt-get install dpkg-dev
apt-get source samba
apt-get build-dep samba

cd samba-3.0-14a
vi source/include/version.h

here remove the a from the 14 ( 3.0.14a => 3.0.14 )

./debian/rules configure-stamp
cd source
./make proto
cd ../..

wget
http://switch.dl.sourceforge.net/sou...ba-vscan-0.3.6
b.tar.bz2

tar xjvf samba-vscan-0.3.6b.tar.bz2

cd samba-vscan-0.3.6b
./configure
--with-samba-source=/usr/src/sources/samba-3.0.14a/source
make && make install

cp clamav/vscan-clamav.conf /etc/samba/samba-vscan-clamav.conf
change in the samba-vscan-clamav.conf
clamd socket name = /var/run/clamav/clamd.ctl
infected spins action = quarantine ( or delete , which I choose.)

When I put that lines in my smb.conf file, I can't access the share
:
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/samba-vscan-clamav.conf

An example:
[public]
comment = Public Directory
path = /home/public
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/samba-vscan-clamav.conf

!!! BEWARE !!!! if samba upgrade to a higer version you MUST
recompile
your samba-vscan. set samba to hold for no upgrade.

echo packagename hold | dpkg --set-selections set to hold
echo packagename install | dpkg --set-selections set to install
9.0 Recycle bin on samba
9.1 Recycle bin configuration

configure samba for using the recycle bin.
I made my manager happy with this.

create a file in /etc/samba
and fill it with the options below.

/etc/samba/samba-recycle.conf

name = .recycle
mode = KEEP_DIRECTORIES|VERSIONS|TOUCH
maxsize = 0
exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.~??|~*.tmp
excludedir = /tmp|/temp|/cache
noversions = *.doc|*.xls|*.ppt

add this to you share, same as vscan.

vfs object = recycle
recycle: config-files = /etc/samba/samba-recycle.conf

create a recycle bin directorie and hide it for the users.

I created .recycle this way ( because of the dot) users don't see
this
IF.. you don't set you explorer to view hidden files.

restart samba and your done.

You are ready to use your samba server.

greets,

Louis
Reply With Quote
  #5  
Old 16th February 2007, 06:15
aaron1234nz aaron1234nz is offline
Junior Member
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default One more step

If you are experiencing problems where your samba shares don't show up when the vfs object is enabled, it is most likely it is because there is one more thing you need to to make it work, which was missed out is this howto.

cp /usr/src/samba-vscan-0.3.6b/vscan-clamav.so /usr/lib/samba/vfs/
Reply With Quote
  #6  
Old 7th June 2011, 23:29
flyingjohn flyingjohn is offline
Junior Member
 
Join Date: May 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by thctlo View Post
yes this is possible,

check out this link
this is my work, its not perfect, but you get far with this.
/snap

8.0 On-Access virus scanning on samba (samba-clamav)
8.1 Installing ClamAV

apt-get install clamav arj unzoo lha clamav-freshclam clamav-daemon
Configuring clamav-freshclam : Daemon
Choose a close mirror
Should clamd be notified after updates? Yes
8.2 get the sources ( samba & samba-vscan )

mkdir /usr/src/sources
cd /usr/src/sources

apt-get install dpkg-dev
apt-get source samba
apt-get build-dep samba

cd samba-3.0-14a
vi source/include/version.h

here remove the a from the 14 ( 3.0.14a => 3.0.14 )

./debian/rules configure-stamp
cd source
./make proto
cd ../..

wget
http://switch.dl.sourceforge.net/sou...ba-vscan-0.3.6
b.tar.bz2

tar xjvf samba-vscan-0.3.6b.tar.bz2

cd samba-vscan-0.3.6b
./configure
--with-samba-source=/usr/src/sources/samba-3.0.14a/source
make && make install

cp clamav/vscan-clamav.conf /etc/samba/samba-vscan-clamav.conf
change in the samba-vscan-clamav.conf
clamd socket name = /var/run/clamav/clamd.ctl
infected spins action = quarantine ( or delete , which I choose.)

When I put that lines in my smb.conf file, I can't access the share
:
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/samba-vscan-clamav.conf

An example:
[public]
comment = Public Directory
path = /home/public
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/samba-vscan-clamav.conf

!!! BEWARE !!!! if samba upgrade to a higer version you MUST
recompile
your samba-vscan. set samba to hold for no upgrade.

echo packagename hold | dpkg --set-selections set to hold
echo packagename install | dpkg --set-selections set to install
9.0 Recycle bin on samba
9.1 Recycle bin configuration arizona seo

configure samba for using the recycle bin.
I made my manager happy with this.

create a file in /etc/samba
and fill it with the options below.

/etc/samba/samba-recycle.conf

name = .recycle
mode = KEEP_DIRECTORIES|VERSIONS|TOUCH
maxsize = 0
exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.~??|~*.tmp
excludedir = /tmp|/temp|/cache
noversions = *.doc|*.xls|*.ppt

add this to you share, same as vscan.

vfs object = recycle
recycle: config-files = /etc/samba/samba-recycle.conf

create a recycle bin directorie and hide it for the users.

I created .recycle this way ( because of the dot) users don't see
this
IF.. you don't set you explorer to view hidden files.

restart samba and your done.

You are ready to use your samba server.

greets,

Louis
nice code above
Reply With Quote
  #7  
Old 11th March 2009, 09:10
invitation invitation is offline
Junior Member
 
Join Date: Mar 2009
Location: USA
Posts: 1
Thanks: 0
Thanked 2 Times in 1 Post
Default Virusscanning on samba shares?

is it also possible to configure an instant virus-scanner? instead of a cron-job?

yes this is possible,

check out this link (http://lists.samba.org/archive/samba...er/114817.html)
this is my work, its not perfect, but you get far with this.
/snap

8.0 On-Access virus scanning on samba (samba-clamav)
8.1 Installing ClamAV

apt-get install clamav arj unzoo lha clamav-freshclam clamav-daemon
Configuring clamav-freshclam : Daemon
Choose a close mirror
Should clamd be notified after updates? Yes
8.2 get the sources ( samba & samba-vscan )

mkdir /usr/src/sources
cd /usr/src/sources

apt-get install dpkg-dev
apt-get source samba
apt-get build-dep samba

cd samba-3.0-14a
vi source/include/version.h

here remove the a from the 14 ( 3.0.14a => 3.0.14 )

./debian/rules configure-stamp
cd source
./make proto
cd ../..

wget
http://switch.dl.sourceforge.net/sou...ba-vscan-0.3.6
b.tar.bz2

tar xjvf samba-vscan-0.3.6b.tar.bz2

cd samba-vscan-0.3.6b
./configure
--with-samba-source=/usr/src/sources/samba-3.0.14a/source
make && make install

cp clamav/vscan-clamav.conf /etc/samba/samba-vscan-clamav.conf
change in the samba-vscan-clamav.conf
clamd socket name = /var/run/clamav/clamd.ctl
infected spins action = quarantine ( or delete , which I choose.)

When I put that lines in my smb.conf file, I can't access the share
:
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/samba-vscan-clamav.conf

An example:
[public]
comment = Public Directory
path = /home/public
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/samba-vscan-clamav.conf

!!! BEWARE !!!! if samba upgrade to a higer version you MUST
recompile
your samba-vscan. set samba to hold for no upgrade.

echo packagename hold | dpkg --set-selections set to hold
echo packagename install | dpkg --set-selections set to install
9.0 Recycle bin on samba
9.1 Recycle bin configuration

configure samba for using the recycle bin.
I made my manager happy with this.

create a file in /etc/samba
and fill it with the options below.

/etc/samba/samba-recycle.conf

name = .recycle
mode = KEEP_DIRECTORIES|VERSIONS|TOUCH
maxsize = 0
exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.~??|~*.tmp
excludedir = /tmp|/temp|/cache
noversions = *.doc|*.xls|*.ppt

add this to you share, same as vscan.

vfs object = recycle
recycle: config-files = /etc/samba/samba-recycle.conf

create a recycle bin directorie and hide it for the users.

I created .recycle this way ( because of the dot) users don't see
this
IF.. you don't set you explorer to view hidden files.

restart samba and your done.

You are ready to use your samba server.
__________________
invitation letter
Reply With Quote
The Following 2 Users Say Thank You to invitation For This Useful Post:
falko (12th March 2009), rockstar9840 (6th November 2010)
  #8  
Old 6th November 2010, 07:04
rockstar9840 rockstar9840 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 13
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Hey invitation, you describe the process so clearly and nicely. I easily got it. You really help me a lot.

Thank You
Reply With Quote
  #9  
Old 25th April 2011, 16:56
jhonhud jhonhud is offline
Junior Member
 
Join Date: Apr 2011
Posts: 2
Thanks: 2
Thanked 1 Time in 1 Post
Default

Hi...Your post really got me thinking man..... an intelligent piece I must say.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Roaming Profile Error with Samba Domain Controller Setup noahlau HOWTO-Related Questions 6 8th March 2008 18:33
Roaming Profile Error with Samba Domain Controller Setup singe Installation/Configuration 1 14th April 2007 07:47
Samba as a PDC HOWTO help jesterking HOWTO-Related Questions 2 23rd February 2006 19:45
Date stamp problem with samba file sharing cioscott HOWTO-Related Questions 0 11th January 2006 19:29
Support samba misterm Feature Requests 1 18th September 2005 01:16


All times are GMT +2. The time now is 10:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.