Mailing List Archive

Funny --include-dir behaviour
this is hilarious, why this won't work?
>                 nice -n -20 clamscan \
> --include-dir="^/home/$SUDO_USER/.thunderbird/Marc/Mail/" \
>                 --recursive="yes" \
>                 --quiet \
>                 --infected \
>                 --alert-broken-media="no" \
>                 --database="/var/lib/clamav" \
>                 --log="/var/log/clamav/clamscan.log"
>                 #--move="/etc/clamav/virusevent.d/Mail"
this should scan only the included path recursive

But when i do this:
>                 nice -n -20 clamscan \
>                 "/home/$SUDO_USER/.thunderbird/Marc/Mail" \
>                 --recursive="yes" \
>                 --quiet \
>                 --infected \
>                 --alert-broken-media="no" \
>                 --database="/var/lib/clamav" \
>                 --log="/var/log/clamav/clamscan.log"
>                 #--move="/etc/clamav/virusevent.d/Mail"
it worked well.
Can someone explain what's the reason for this?
Oh and the var SUDO_USER is the whoami

regards,
Marc

_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat
Re: Funny --include-dir behaviour [ In reply to ]
Sorry thi is coming sd an attachment.
I sent this with the wrong from address
so it didn't reach the list the first time.

--
Andrew C. Aitchison Kendal, UK
andrew@aitchison.me.uk
Re: Funny --include-dir behaviour [ In reply to ]
Hi,

For
> nice -n -20 clamscan \
> --include-dir="^/home/$SUDO_USER/.thunderbird/Marc/Mail/" \
> --recursive="yes" \
> --quiet \
> --infected \
> --alert-broken-media="no" \
> --database="/var/lib/clamav" \
> --log="/var/log/clamav/clamscan.log"
> #--move="/etc/clamav/virusevent.d/Mail"

what is your current directory? Since none is specified, the current directory is chosen, so if you aren't in a parent directory of Mail, it will not be scanned.

Thanks,
Andy

________________________________
From: clamav-users <clamav-users-bounces@lists.clamav.net> on behalf of newcomer01 via clamav-users <clamav-users@lists.clamav.net>
Sent: Monday, February 13, 2023 4:51 AM
To: ClamAV User Mailinglist <clamav-users@lists.clamav.net>
Cc: newcomer01 <newcomer01@posteo.de>
Subject: [clamav-users] Funny --include-dir behaviour

this is hilarious, why this won't work?
> nice -n -20 clamscan \
> --include-dir="^/home/$SUDO_USER/.thunderbird/Marc/Mail/" \
> --recursive="yes" \
> --quiet \
> --infected \
> --alert-broken-media="no" \
> --database="/var/lib/clamav" \
> --log="/var/log/clamav/clamscan.log"
> #--move="/etc/clamav/virusevent.d/Mail"
this should scan only the included path recursive

But when i do this:
> nice -n -20 clamscan \
> "/home/$SUDO_USER/.thunderbird/Marc/Mail" \
> --recursive="yes" \
> --quiet \
> --infected \
> --alert-broken-media="no" \
> --database="/var/lib/clamav" \
> --log="/var/log/clamav/clamscan.log"
> #--move="/etc/clamav/virusevent.d/Mail"
it worked well.
Can someone explain what's the reason for this?
Oh and the var SUDO_USER is the whoami

regards,
Marc

_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat
Re: Funny --include-dir behaviour [ In reply to ]
Sorry, the attachment i will not open!

You send over an .de Domain and the descriptions are in french only and contanins ONLY javascript Codes!

NO!

@Admin: maybe we should block the user from list?

Von / From: Clamav Users Ml <mailto:AGoyette@finer-food.de>
An / To: Newcomer01 <mailto:newcomer01@posteo.de>
Gesendet / Sent: Mittwoch, März 22, 2023 um 14:14 (at 02:14 PM) +0100
Betreff / Subject: Re: [clamav-users] Funny --include-dir behaviour
>
> Would you please look through the last agreement? I have attached some extra details about it.
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Hi,
>
> For
> >        nice -n -20 clamscan \
> > --include-dir="^/home/$SUDO_USER/.thunderbird/Marc/Mail/" \
> >        --recursive="yes" \
> >        --quiet \
> >        --infected \
> >        --alert-broken-media="no" \
> >        --database="/var/lib/clamav" \
> >        --log="/var/log/clamav/clamscan.log"
> >        #--move="/etc/clamav/virusevent.d/Mail"
>
> what is your current directory?  Since none is specified, the current directory is chosen, so if you aren't in a parent directory of Mail, it will not be scanned.
>
> Thanks,
> Andy
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> *From:* clamav-users on behalf of newcomer01 via clamav-users
> *Sent:* Monday, February 13, 2023 4:51 AM
> *To:* ClamAV User Mailinglist
> *Cc:* newcomer01
> *Subject:* [clamav-users] Funny --include-dir behaviour
> this is hilarious, why this won't work?
> >        nice -n -20 clamscan \
> > --include-dir="^/home/$SUDO_USER/.thunderbird/Marc/Mail/" \
> >        --recursive="yes" \
> >        --quiet \
> >        --infected \
> >        --alert-broken-media="no" \
> >        --database="/var/lib/clamav" \
> >        --log="/var/log/clamav/clamscan.log"
> >        #--move="/etc/clamav/virusevent.d/Mail"
> this should scan only the included path recursive
>
> But when i do this:
> >        nice -n -20 clamscan \
> >        "/home/$SUDO_USER/.thunderbird/Marc/Mail" \
> >        --recursive="yes" \
> >        --quiet \
> >        --infected \
> >        --alert-broken-media="no" \
> >        --database="/var/lib/clamav" \
> >        --log="/var/log/clamav/clamscan.log"
> >        #--move="/etc/clamav/virusevent.d/Mail"
> it worked well.
> Can someone explain what's the reason for this?
> Oh and the var SUDO_USER is the whoami
>
> regards,
> Marc
>
> _______________________________________________
>
> Manage your clamav-users mailing list subscription / unsubscribe:
>
>
>
> Help us build a comprehensive ClamAV guide:
>
>
>