Your company here — click to reach over 10,000 unique daily visitors

clamonacc - Man Page

an anti-virus on-access scanning daemon and clamd client


clamonacc [options]


The clamonacc daemon registers for file access notifications from the Linux kernel and in response, submits scans to the clamd scanning daemon for a verdict. On-Access is only available on Linux systems. On Linux, On-Access requires a kernel version >= 3.8. This is because it leverages a kernel api called fanotify to block processes from attempting to access malicious files. This prevention occurs in kernel-space, and thus offers stronger protection than a purely user-space solution.


-h,  --help

Output help information and exit.

-V,  --version

Print the version number and exit.

-v,  --verbose

Be verbose.

-l FILE, --log=FILE

Save the scan report to FILE.

-F,  --foreground

Run in foreground; do not daemonize.

-W FILE, --watch-list=FILE

Watch directories from FILE.

-e FILE, --exclude-list=FILE

Exclude directories from FILE.

-p A[:I], --ping A[:I]

Ping clamd up to [A] times at optional interval [I] until it responds.

-w,  --wait

Wait up to 30 seconds for clamd to start. Optionally use alongside ping to set attempts [A] and interval [I] to check clamd.


Remove infected files. Be careful.


Move infected files into DIRECTORY.


Copy infected files into DIRECTORY.

-c FILE, --config-file=FILE

Read configuration from FILE.


Continue scanning within file after finding a match.


Pass the file descriptor permissions to clamd. This is useful if clamd is running as a different user as it is faster than streaming the file to clamd. Only available if connected to clamd via local(unix) socket.


Forces file streaming to clamd. This is generally not needed as clamdscan detects automatically if streaming is required. This option only exists for debugging and testing purposes, in all other cases --fdpass is preferred.


ClamOnAcc recognizes the following signals:


Reopen the logfile.


Reload the signature databases.


Perform a clean exit.




Please check the full documentation for credits.


Tomasz Kojm <tkojm@clamav.net>

See Also

clamd.conf(5), clamd(8)


July 29, 2020 ClamAV 1.0.6 Clam AntiVirus