Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] ClamAV

Featured Replies

21 minutes ago, Lonewolf147 said:

Just copy/pasting this code into User Scripts I have an error right at the beginning

image.png.cc814576d065a651c1e7aacbdc7570ac.png

 

Strange, the syntax should be correct according to https://www.php.net/manual/en/language.enumerations.backed.php. Its almost like the script parser is on a lower php version.

 

Ill ask around on the user script forum for a solution.

  • 1 month later...
  • Replies 336
  • Views 113.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • You would make another instance of the container.  Each instance scans whatever is specified

  • chmod -R u-x,go-rwx,go+u,ugo+X /mnt/cache/appdata/clamav chown -R nobody:users  /mnt/cache/appdata/clamav

Posted Images

Is there a way to exclude directories from the scan?

 

Example:

 

I scan /mnt/user/, but I'd like to exclude my Thunderbird directory so that I don't get warnings about spoofed domains (I'm aware that my junk folder contains phishing attempts).

 

Can I pass an argument to tell it to ignore or exclude specific (sub) directories?

  • 4 weeks later...

i Found a container has error , but worked befor , using user script and when just running container

 

image.thumb.png.800dba8f0b76b99140ad1be5fba25413.png

 

had other perrmision but changed to chmod 666 , and added --file_list instead -f , but nothing changed

image.thumb.png.9dcb1456bc4ed316042d2a98f4d0881f.png

 

image.png.0dd766379bbd4a03ca1a5ccf76e6bee5.png

 

it seems that appdata not avalible from container when its hard linked and not bind mounted 

 

image.thumb.png.c5a8c870492537f70447d4040986a85f.png

 

Fixed by changing to

--file-list=/var/lib/clamav/clamavtargets.txt 

  • 2 weeks later...

Why we have two Entry's in the CA for ClamAV? But he reference the same Links.

One Official but this is not the Spotlight Entry.

What's the Difference/recommended?

 

The official have a Multiple Template Error Hint in the Details.

 

On 12/6/2023 at 6:39 PM, Refrigerator said:

Is there a way to exclude directories from the scan?

Same Question

 

Can anybody ad multiple Path to Scan? Than we have no many Docker Containers from the same but with a another Path.

This makes it very confusing by many directories.

 

Maybe can @Helediron expanded your Script to Exclude Directorys and support spaces. And we can set the Permissions on the Script? For example the Folder is Read Only.

On 4/13/2022 at 7:49 PM, Masterwishx said:

@Helediron how i can add "My Folder" to  FOLDERSWEEKLY i mean  share with space inside ?

 

Edited by Revan335

9 hours ago, Revan335 said:

Maybe can @Helediron expanded your Script to Exclude Directorys and support spaces. And we can set the Permissions on the Script? For example the Folder is Read Only.

 

I updated the script to use spaces 

 

 

  • Author
10 hours ago, Revan335 said:

Why we have two Entry's in the CA for ClamAV? But he reference the same Links.

One Official but this is not the Spotlight Entry.

What's the Difference/recommended?

 

Someone created the "Official", then pointed to my repo. SMH. 

59 minutes ago, TQ said:

Someone created the "Official", then pointed to my repo. SMH. 

Maybe anybody changed the official to yours, remove the other or his creater fix the links, Template Error Hints, ...? Or can only @Squid this?

I can see that in the template the Entry by Docker clamav/clamav. Very confusing.

Edited by Revan335

8 hours ago, Masterwishx said:

 

I updated the script to use spaces 

 

 

Thank you @Masterwishx. I edited my original script post to point here.

On 12/6/2023 at 11:39 AM, Refrigerator said:

Is there a way to exclude directories from the scan?

 

Example:

 

I scan /mnt/user/, but I'd like to exclude my Thunderbird directory so that I don't get warnings about spoofed domains (I'm aware that my junk folder contains phishing attempts).

 

Can I pass an argument to tell it to ignore or exclude specific (sub) directories?

 

You will need to use post arguments. by default /scan is the target for av to scan.

By default, /mnt/users is set to /scan in the docker.

 

so add this clamav scan option 

 

--exclude-dir="/scan/path to thunderbird"

 

 

Edited by bmartino1

7 hours ago, bmartino1 said:

 

You will need to use post arguments. by default /scan is the target for av to scan.

By default, /mnt/users is set to /scan in the docker.

 

so add this clamav scan option 

 

--exclude-dir="/scan/path to thunderbird"

 

 

Do you mean this?Screenshot_20240115-095553_Firefox.thumb.png.e498f9850ea164d3a2addddd9a4f0dc2.png

Edited by Revan335

  • Author
20 minutes ago, Revan335 said:

Do you mean this?Screenshot_20240115-095553_Firefox.thumb.png.e498f9850ea164d3a2addddd9a4f0dc2.png

 

It's further up on the screen.

image.png.5dad85c94d0e0db795fef74d78f4938a.png

I noticed a small issue with the Clamav container parameters. It uses path "/mnt/cache/appdata/clamav". I recently converted my cache to ZFS pool and named it "zfspool". So, i no longer have "cache" pool. A better value for the signatures folder would be "/mnt/user/appdata/clamav".


The "Fix Common Problems" plugin starts to yell about spurious "cache" folder under /mnt because of the parameter.

  • Author
1 hour ago, Helediron said:

I noticed a small issue with the Clamav container parameters. It uses path "/mnt/cache/appdata/clamav". I recently converted my cache to ZFS pool and named it "zfspool". So, i no longer have "cache" pool. A better value for the signatures folder would be "/mnt/user/appdata/clamav".


The "Fix Common Problems" plugin starts to yell about spurious "cache" folder under /mnt because of the parameter.

 

Good catch!

XML is updated.

23 hours ago, Helediron said:

Thank you @Masterwishx. I edited my original script post to point here.

 

I'm working on script to add subfolders exclude, will post here and in github. Thank you for original script 

@Refrigerator @Revan335

 

Updated script to exclude subfolders, no need for post arguments :

Please check and confirm that working Fine who is needed.

 

 

# Set to Exclude Subfolders "yes/no".

exclude_subfolders="yes"

 

EXCLUDEDSUBFOLDERS=("Test" "Adobe Documents")

 

 

 

 

@Masterwishx How can i scan all Folders with your Scripts? With "*" or * on the Folders Parameters? For example can all under /mnt/user without the excluded Folders (from the excluded Folders Parameters).

 

Is this the correct Arguments for that?

-i --max-filesize=4096M --max-scansize=4096M -f /scan/appdata/clamav/clamavtargets.txt

 

This is not required? Why the Script have a log Parameter/Function.

--log=/var/lib/clamav/log.log

 

I have this outpout:

2024-01-21T17:33:02+01:00 ClamAV process starting

Unpdating ClamAV scan DB

Hint: The database directory must be writable for UID 100 or GID 101

An error occurred (freshclam returned with exit code '2')

Why have the Docker Template the UID 99 and GID 100 when we must have 100 and 101?

On 1/21/2024 at 7:04 PM, Revan335 said:

How can i scan all Folders with your Scripts? With "*" or * on the Folders Parameters? For example can all under /mnt/user without the excluded Folders (from the excluded Folders Parameters).

 

 

You should only set file-list parametr for scan like this:

-i --file-list=/var/lib/clamav/clamavtargets.txt --max-filesize=1024M

 

the script put the folders you want to scan in this file ,also made log files ,so no need for log parametr 

 

image.thumb.png.7b366584255afedc7058e0568efad817.png

 

So in script you need to add Folders you want to Scan and if you need to exclude add subfolders and set "yes" for exclude_subfolders: 

 

image.png.95424e200931fc36800648935f54454f.png 

 

 

 

On 1/21/2024 at 7:04 PM, Revan335 said:

With "*" or * on the Folders Parameters?

i think this will not work with current version of script, but not checked , you can try it

On 1/21/2024 at 7:04 PM, Revan335 said:

How can i scan all Folders with your Scripts? With "*" or * on the Folders

 Please try with this

# Get a list of all folders in your specified directory

FOLDERSDAILY=($(ls -d $HOSTSCANDIR/*))

 

Edited by Masterwishx

53 minutes ago, Masterwishx said:

How can i scan all Folders with your Scripts? With "*" or * on the Folders

 

i checked , This need to modify the script, why you need to scan all shares? its better to select only the shares you really need

Edited by Masterwishx

3 hours ago, Masterwishx said:

why you need to scan all shares?

He was configured ones and not thinking changed when a new Share was created. Only excluded Shares are changed when as needed.

On 1/21/2024 at 6:04 PM, Revan335 said:

have this outpout:

2024-01-21T17:33:02+01:00 ClamAV process starting

Unpdating ClamAV scan DB

Hint: The database directory must be writable for UID 100 or GID 101

An error occurred (freshclam returned with exit code '2')

Why have the Docker Template the UID 99 and GID 100 when we must have 100 and 101?

Can you fix this in the template? @TQ

Edited by Revan335

4 hours ago, Revan335 said:

He was configured ones and not thinking changed when a new Share was created. Only excluded Shares are changed when as needed.

This will take a lot of time to scan all shares, so better to select only what you need

4 hours ago, Revan335 said:

Can you fix this in the template?

Do you have 99:100 permissions for Folder clamav As in container? 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.