October 14, 20232 yr 21 minutes ago, Lonewolf147 said: Just copy/pasting this code into User Scripts I have an error right at the beginning 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.
December 6, 20232 yr 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?
January 2, 20242 yr i Found a container has error , but worked befor , using user script and when just running container: had other perrmision but changed to chmod 666 , and added --file_list instead -f , but nothing changed
January 2, 20242 yr it seems that appdata not avalible from container when its hard linked and not bind mounted : Fixed by changing to : --file-list=/var/lib/clamav/clamavtargets.txt
January 14, 20242 yr 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 January 14, 20242 yr by Revan335
January 14, 20242 yr 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 :
January 14, 20242 yr 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.
January 14, 20242 yr 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 January 14, 20242 yr by Revan335
January 14, 20242 yr 8 hours ago, Masterwishx said: I updated the script to use spaces : Thank you @Masterwishx. I edited my original script post to point here.
January 15, 20242 yr 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 January 15, 20242 yr by bmartino1
January 15, 20242 yr 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? Edited January 15, 20242 yr by Revan335
January 15, 20242 yr Author 20 minutes ago, Revan335 said: Do you mean this? It's further up on the screen.
January 15, 20242 yr 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.
January 15, 20242 yr 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.
January 15, 20242 yr 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
January 17, 20242 yr @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")
January 21, 20242 yr @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?
January 23, 20242 yr 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 : 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:
January 23, 20242 yr 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
January 23, 20242 yr 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 January 23, 20242 yr by Masterwishx
January 23, 20242 yr 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 January 23, 20242 yr by Masterwishx
January 23, 20242 yr 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.
January 23, 20242 yr 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 January 23, 20242 yr by Revan335
January 23, 20242 yr 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
January 23, 20242 yr 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.