This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sophos Antivirus for Linux Free Edition - Exclusion for gfvs

Hey,

I use the following command to scan an Ubuntu 14.04 regularly.

ionice -c 3 savscan / -sc -f -ndi -s -nc -nb -all -rec -nremove -ss -archive -loopback -mime -oe -pua -tnef -pua -suspicious --stay-on-machine --no-follow-symlinks --skip-special --examine-x-bit --no-reset-atime -exclude /var/run/user/1000/gvfs/ -exclude /run/user/1000/gvfs/

But I am getting the error "Could not open /run/user/1000/gvfs".

root@host:~# ls -lh /run/user/1000/
ls: cannot access /run/user/1000/gvfs: Permission denied
total 8,0K
drwx------ 2 user user  60 Jul 29 14:52 dconf
d????????? ? ?    ?      ?            ? gvfs
drwx------ 2 user user  80 Jul 24 22:03 pulse
drwx------ 3 user user  60 Jul 24 22:03 upstart

How do I properly use the exclude option?
-exclude file1,file2,/dir/
-exclude fil1 -exclude file2 -exclude /dir/

Or is there nothing wrong and it is a FUSE problem?

Cheers
Mark



This thread was automatically locked due to age.
Parents
  • Hello Mark,

    usually it's -exclude file1 file2 /dir/ (blanks, not commas). -include and -exclude can be specified in any order, can't test right now whether a second -exclude would be ignored.

    Christian

  • Thx for the explanation. But it can not handle wildcards, right?

    I do this.

    sudo savscan / -sc -f -ndi -s -nc -nb -all -rec -nremove -ss -archive -loopback -mime -oe -pua -tnef -pua -suspicious --stay-on-machine --no-follow-symlinks --skip-special --examine-x-bit --no-reset-atime -exclude /home/user/.gvfs/ /run/user/1000/gvfs/ /var/run/user/1000/gvfs/ /lib/firmware/vxge/X3fw.ncf /lib/firmware/vxge/X3fw-pxe.ncf  *X3fw-pxe.ncf *X3fw.ncf

    And I want to get rid of these messages:

    Password protected file /boot/initrd.img-3.13.0-155-generic/Gzip/X3fw-pxe.ncf/T1:X3_101115_1_8_1_expROM_FW_uni_template_rmt_cmd_line.txt
    Password protected file /boot/initrd.img-3.13.0-155-generic/Gzip/X3fw-pxe.ncf/T1:X3_101115_1_8_1_expROM_FW_uni_template_flash0.bin
    Password protected file /boot/initrd.img-3.13.0-155-generic/Gzip/X3fw-pxe.ncf/T1:X3_101115_1_8_1_expROM_FW_uni_template_eeprom0.bin
    Password protected file /boot/initrd.img-3.13.0-155-generic/Gzip/X3fw-pxe.ncf/T1A:X3_101115_1_8_1_expROM_FW_uni_template_rmt_cmd_line.txt
    Password protected file /boot/initrd.img-3.13.0-155-generic/Gzip/X3fw-pxe.ncf/T1A:X3_101115_1_8_1_expROM_FW_uni_template_flash0.bin
    Password protected file /boot/initrd.img-3.13.0-155-generic/Gzip/X3fw-pxe.ncf/T1A:X3_101115_1_8_1_expROM_FW_uni_template_eeprom0.bin
    Password protected file /boot/initrd.img-3.13.0-155-generic/Gzip/X3fw.ncf/T1:X3_101025_1_8_1_expROM_FW_uni_template_rmt_cmd_line.txt
    Password protected file /boot/initrd.img-3.13.0-155-generic/Gzip/X3fw.ncf/T1:X3_101025_1_8_1_expROM_FW_uni_template_flash0.bin
    Password protected file /boot/initrd.img-3.13.0-155-generic/Gzip/X3fw.ncf/T1:X3_101025_1_8_1_expROM_FW_uni_template_eeprom0.bin
    Password protected file /boot/initrd.img-3.13.0-155-generic/Gzip/X3fw.ncf/T1A:X3_101025_1_8_1_expROM_FW_uni_template_rmt_cmd_line.txt
    Password protected file /boot/initrd.img-3.13.0-155-generic/Gzip/X3fw.ncf/T1A:X3_101025_1_8_1_expROM_FW_uni_template_flash0.bin
    Password protected file /boot/initrd.img-3.13.0-155-generic/Gzip/X3fw.ncf/T1A:X3_101025_1_8_1_expROM_FW_uni_template_eeprom0.bin

     

    And especially this message:

    Could not open /run/user/1000/gvfs

    Cheers
    Mark

  • Hello Mark,

    AFAIK there's an --expand-wildcards option that might be off by default.

    Did you try to exclude /gvfs without the trailing slash?

    Christian

Reply Children