Results 1 to 2 of 2

Thread: clamscan

  1. #1

    Question clamscan

    Code:
    clamscan -r --cross-fs=no --follow-file-symlinks=1 --follow-dir-symlinks=1  /
    This skips root and home folders. I can't figure how to make it use this line.

    Code:
        --exclude-dir=REGEX                  Don't scan directories matching REGEX
        --include-dir=REGEX                  Only scan directories matching REGEX
    
    https://linux.die.net/man/1/clamscan
    All methods i'v tried have not worked.

    Code:
    ExcludedScanFolders= .cache dev etc proc tmp srv sys var .snapshots
    LinuxScanFolders= bin boot home lib lib64 mnt sbin root usr
    I can't use either function, use of those statements many times fails.

    What is the 'regular expression' that will make this work?

    Code:
    --include-dir=REGEX                  Only scan directories matching REGEX

  2. #2

    Default Re: clamscan

    Code:
    nice -n 0 clamscan -r --cross-fs=no --follow-file-symlinks=1 --follow-dir-symlinks=1 --exclude-dir='.snapshots'  /
    Scanning Folder /etc
    Scanning Folder /boot
    Scanning Folder /usr
    Scanning Folder /lib
    Scanning Folder /bin
    Scanning Folder /lib64
    Scanning Folder /sbin

    This is best result I could get. After, I have to manually scan /home and /root.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •