Sponsored Content
Top Forums Shell Programming and Scripting Create automated scan of specific directory using bash Post 302989056 by Peasant on Friday 6th of January 2017 02:12:11 PM
Old 01-06-2017
On linux systems clamav implements a system to watch directories using inotify subsystem.

You might want to check that out :
http://blog.clamav.net/2016/03/confi...in-clamav.html
This User Gave Thanks to Peasant For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

create user with RWX access to a specific directory in Solaris 10

I need to create a user account for a developer that will allow him rwx access to all resources in a directory. How can I do that? Thanks (5 Replies)
Discussion started by: gsander
5 Replies

2. Shell Programming and Scripting

Create a specific bash to increase the automatic update on my pi

hi everyone, I just began to be interested about the bash access. I buy a time ago a Raspberry pi, I installed raspbmc and now I would like build a bash to copy everyday all new files inside my server directly on the hard drive in my Pi. So my HDD is directly plug on my pi with usb connect,... (4 Replies)
Discussion started by: nagito34
4 Replies

3. Solaris

Limit bash/sh user's access to a specific directory

Hello Team, I have Solaris 10 u6 I have a user test1 using bash that belong to the group staff. I would like to restrict this user to navigate only in his home directory and his subfolders but not not move out to other directories. How can I do it ? Thanks in advance (1 Reply)
Discussion started by: csierra
1 Replies

4. Shell Programming and Scripting

Bash to create new directory by date followed by identifier and additional subdirectories

I have a bash that downloads a list and if that list has data in it then a new main directory is created (with the date) with several subdirectories (example1, example2, example3). My question is in that list there are portion of specific file types (.vcf.gz) - identifier towards the end that have... (0 Replies)
Discussion started by: cmccabe
0 Replies

5. Shell Programming and Scripting

Bash to select panel then specific file in directory

I am using bash to prompt a user for a choice using: where a "y" response opens a menu with available panels that can be used. while true; do read -p "Do you want to get coverage of a specific panel?" yn case $yn in * ) menu; break;; * ) exit;; * ) echo... (6 Replies)
Discussion started by: cmccabe
6 Replies

6. Shell Programming and Scripting

Bash to list all folders in a specific directory

The below bash is trying to list the folders in a specific directory. It seems close but adds the path to the filename, which basename could strip off I think, but not sure why it writes the text file created? This list of folders in the directory will be used later, but needs to only be the... (5 Replies)
Discussion started by: cmccabe
5 Replies

7. Shell Programming and Scripting

Bash directory loop, but only choose those folders with specific word in it

Hello, how in bash i can get directory loop, but only choose those folders with specific word in it, so it will only echo those with specific word #!/bin/bash for filename in /home/test/* do if ; then echo $filename; fithx! (4 Replies)
Discussion started by: ZerO13
4 Replies

8. Shell Programming and Scripting

Bash to create sub directories from specific file extension

In the bash below I am trying to create sub-directories inside a directory from files with specific .bam extensions. There may be more then one $RDIR ing the directory and the .bam file(s) are trimmed (removing the extension and IonCode_0000_) and the result is the folder name that is saved in... (2 Replies)
Discussion started by: cmccabe
2 Replies

9. Shell Programming and Scripting

Create directory and sub-directory with awk and bash

In the below I am trying to create a parent directory using the R_2019 line from f1 if what above it is not empty. I then create sub-directories under each parent if there is a match between $2 of f1 and $2. Inside each sub-folder the matching paths in $3 and $4 in f2are printed. If there is no... (2 Replies)
Discussion started by: cmccabe
2 Replies

10. Shell Programming and Scripting

Bash to check directory and create missing folder from file

In the below bash I am trying to ensure that all folders (represented by $folders) in a given directory are created. In the file f1 the trimmed folder will be there somewhere (will be multiple trimmed folders). When that trimmed folder is found (represented by $S5) the the contents of $2 printed... (19 Replies)
Discussion started by: cmccabe
19 Replies
freshclam.conf(5)						  Clam AntiVirus						 freshclam.conf(5)

NAME
freshclam.conf - Configuration file for Clam AntiVirus database update tool DESCRIPTION
The file freshclam.conf configures the Clam AntiVirus Database Updater, freshclam(1). FILE FORMAT
The file consists of comments and options with arguments. Each line which starts with a hash (#) symbol is ignored by the parser. Options and arguments are case sensitive and of the form Option Argument. The arguments are of the following types: BOOL Boolean value (yes/no or true/false or 1/0). STRING String without blank characters. SIZE Size in bytes. You can use 'M' or 'm' modifiers for megabytes and 'K' or 'k' for kilobytes. NUMBER Unsigned integer. DIRECTIVES
When an option is not used (hashed or doesn't exist in the configuration file) freshclam takes a default action. Example If this option is set freshclam will not run. LogFileMaxSize SIZE Limit the size of the log file. The logger will be automatically disabled if the file is greater than SIZE. Value of 0 disables the limit. Default: 1M LogTime BOOL Log time with each message. Default: no LogSyslog BOOL Enable logging to Syslog. May be used in combination with UpdateLogFile. Default: disabled. LogFacility STRING Specify the type of syslog messages - please refer to 'man syslog' for facility names. Default: LOG_LOCAL6 LogVerbose BOOL Enable verbose logging. Default: disabled LogRotate BOOL Rotate log file. Requires LogFileMaxSize option set prior to this option. Default: no PidFile STRING This option allows you to save the process identifier of the daemon to a file specified in the argument. Default: disabled DatabaseDirectory STRING Path to a directory containing database files. Default: /var/lib/clamav Foreground BOOL Don't fork into background. Default: no Debug BOOL Enable debug messages in libclamav. Default: no AllowSupplementaryGroups BOOL Initialize supplementary group access (freshclam must be started by root). Default: disabled UpdateLogFile STRING Enable logging to a specified file. Highly recommended. Default: disabled. DatabaseOwner STRING When started by root, drop privileges to a specified user. Default: Checks NUMBER Number of database checks per day. Default: 12 DNSDatabaseInfo STRING Use DNS to verify the virus database version. Freshclam uses DNS TXT records to verify the versions of the database and software itself. With this directive you can change the database verification domain. WARNING: Please don't change it unless you're configuring freshclam to use your own database verification domain. Default: enabled, pointing to current.cvd.clamav.net DatabaseMirror STRING DatabaseMirror specifies to which mirror(s) freshclam should connect. You should have at least two entries: db.XY.clamav.net (or db.XY.ipv6.clamav.net for IPv6) and database.clamav.net (in this order). Please replace XY with your country code (see http://www.iana.org/cctld/cctld-whois.htm). database.clamav.net is a round-robin record which points to our most reliable mirrors. It's used as a fall back in case db.XY.clamav.net is not working. Default: database.clamav.net PrivateMirror STR This option allows you to easily point freshclam to private mirrors. If PrivateMirror is set, freshclam does not attempt to use DNS to determine whether its databases are out-of-date, instead it will use the If-Modified-Since request or directly check the headers of the remote database files. For each database, freshclam first attempts to download the CLD file. If that fails, it tries to down- load the CVD file. This option overrides DatabaseMirror, DNSDatabaseInfo and ScriptedUpdates. It can be used multiple times to pro- vide fall-back mirrors. Default: disabled MaxAttempts NUMBER How many attempts (per mirror) to make before giving up. Default: 3 (per mirror) ScriptedUpdates BOOL With this option you can control scripted updates. It's highly recommended to keep it enabled. Default: yes TestDatabases BOOL With this option enabled, freshclam will attempt to load new databases into memory to make sure they are properly handled by libcla- mav before replacing the old ones. Default: enabled CompressLocalDatabase BOOL By default freshclam will keep the local databases (.cld) uncompressed to make their handling faster. With this option you can enable the compression; the change will take effect with the next database update. Default: no ExtraDatabase STRING Download an additional 3rd party signature database distributed through the ClamAV mirrors. This option can be used multiple times. Here you can find a list of available databases: http://www.clamav.net/download/cvd/3rdparty Default: disabled DatabaseCustomURL STRING With this option you can provide custom sources (http:// or file://) for database files. This option can be used multiple times. Default: disabled HTTPProxyServer STR, HTTPProxyPort NUMBER Use given proxy server and TCP port for database downloads. HTTPProxyPort defaults to 8080. HTTPProxyUsername STR,HTTPProxyPassword STRING Proxy usage is authenticated through given username and password. Default: disabled HTTPUserAgent STRING If your servers are behind a firewall/proxy which applies User-Agent filtering, you can use this option to force the use of a dif- ferent User-Agent header. Default: clamav/version_number NotifyClamd STRING Notify a running clamd(8) to reload its database after a download has occurred. The path for clamd.conf file must be provided. Default: The default is to not notify clamd. See clamd.conf(5)'s option SelfCheck for how clamd(8) handles database updates in this case. OnUpdateExecute STRING Execute this command after the database has been successfully updated. Default: disabled OnErrorExecute STRING Execute this command after a database update has failed. Default: disabled OnOutdatedExecute STRING Execute this command when freshclam reports outdated version. In the command string %v will be replaced by the new version number. Default: disabled LocalIPAddress IP Use IP as client address for downloading databases. Useful for multi homed systems. Default: Use OS'es default outgoing IP address. ConnectTimeout NUMBER Timeout in seconds when connecting to database server. Default: 10 ReceiveTimeout NUMBER Timeout in seconds when reading from database server. Default: 30 SubmitDetectionStats STRING When enabled freshclam will submit statistics to the ClamAV Project about the latest virus detections in your environment. The Cla- mAV maintainers will then use this data to determine what types of malware are the most detected in the field and in what geographic area they are. Freshclam will connect to clamd in order to get the recent statistics. The path for clamd.conf file must be provided. Default: disabled DetectionStatsCountry STRING Country of origin of malware/detection statistics (for statistical purposes only). The statistics collector at ClamAV.net will look up your IP address to determine the geographical origin of the malware reported by your installation. If this installation is mainly used to scan data which comes from a different location, please enable this option and enter a two-letter code (see http://www.iana.org/domains/root/db/) of the country of origin. Default: disabled DetectionStatsHostID STRING This option enables support for our "Personal Statistics" service. When this option is enabled, the information on malware detected by your clamd installation is made available to you through our website. To get your HostID, log on http://www.stats.clamav.net and add a new host to your host list. Once you have the HostID, uncomment this option and paste the HostID here. As soon as your fresh- clam starts submitting information to our stats collecting service, you will be able to view the statistics of this clamd installa- tion by logging into http://www.stats.clamav.net with the same credentials you used to generate the HostID. For more information refer to: http://www.clamav.net/support/faq/faq-cctts/. This feature requires SubmitDetectionStats to be enabled. Default: disabled SafeBrowsing BOOL This option enables support for Google Safe Browsing. When activated for the first time, freshclam will download a new database file (safebrowsing.cvd) which will be automatically loaded by clamd and clamscan during the next reload, provided that the heuristic phishing detection is turned on. This database includes information about websites that may be phishing sites or possible sources of malware. When using this option, it's mandatory to run freshclam at least every 30 minutes. Freshclam uses the ClamAV's mirror in- frastructure to distribute the database and its updates but all the contents are provided under Google's terms of use. See http://code.google.com/support/bin/answer.py?answer=70015 and http://safebrowsing.clamav.net for more information. Default: disabled Bytecode BOOL This option enables downloading of bytecode.cvd, which includes additional detection mechanisms and improvements to the ClamAV engine. Default: enabled FILES
/etc/clamav/freshclam.conf AUTHOR
Thomas Lamy <thomas.lamy@netwake.de>, Tomasz Kojm <tkojm@clamav.net>, Kevin Lin <klin@sourcefire.com> SEE ALSO
freshclam(1), clamd.conf(5), clamd(8), clamscan(1) ClamAV 0.98.4 December 4, 2013 freshclam.conf(5)
All times are GMT -4. The time now is 12:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy