2014 server products

Hello,
3. http://www.amtso.org/

Milos

I doubt I could test a ‘beta’ release of a Server Edition of Avast.

1.) I don’t use a Server running Linux.
2.) I would most certainly break the package structure specific to my Linux DE

Hoping the difference between a ‘Server’, and DE is clearer. :wink:

I have some errors using scan on centos linux:

[root@web ~]# scan /var/www/
scan: /var/www/atmail/users/tmp: Permission denied

Same errors on /home:
[root@web ~]# scan /home/
scan: /home/claudiuc: Permission denied

Seems like there are some permission problems, if I add avast user to root group is working ok.

By default, the scan service is running under the avast user as running under root
is not required (and not wanted) for the mailserver and network proxy use case. If
you need avast running under root, for example for the fileserver shield usage*, you
can change it by creating the file /etc/default/avast with the following content:


AVAST_USER=root
AVAST_GROUP=root

  • This is done automatically, when the avast-fss package is installed.

@tumic:
I’m using avast as a daily scanner for malware on a shared web hosting server, based on RedHat, so is not possible to use avast-fss.
Anyway is not a bug, so thanks for hint about /etc/default/avast options.

Another question, can we get some detailed reports from scan process (like number of files scanned, number of infected files, etc)?
And it is possible to add a remove/quarantine option to scan process?

@tumic:
do you mean “/etc/sysconfig/avast” ?

No, I really mean /etc/default/avast. If the file does not exist, then simply create it.

You can use the “-a” switch, redirect the output to a file and get any statistics you want. e.g.:


scan -a /dir/to/scan > /tmp/scan.log
# number of files scanned
cat /tmp/scan.log | wc -l
# number of infected files
grep -v '[OK]' /tmp/scan.log | wc -l

The same as above. Just use some trivial shell script to do this. e.g.


scan /dir/to/scan | cut -f 1 | { while read file; do mv $file /chest/dir; done }

/etc/init.d/avast

Copyright(c) 2013 AVAST Software

EXEC=“/bin/avast”
SYSCONFIG=“/etc/sysconfig/avast”

RUNDIR=“/var/run/avast”
PIDFILE=“$RUNDIR/avast.pid”
PROG=basename $EXEC

Include defaults if available

[ -r “$SYSCONFIG” ] && . “$SYSCONFIG”

if [ -z “$AVAST_USER” ]; then
AVAST_USER=‘avast’
fi
if [ -z “$AVAST_GROUP” ]; then
AVAST_GROUP=‘avast’
fi

Bug on update, crontab is not updated ok (rpm -Uvh avast-1.0.5-1.x86_64.rpm)

Begin: avast of crontab entry

Do not add anything between ‘### Begin: avast …’ and ‘### End: avast …’ lines.

anything in between these lines will be removed when ‘avast’ package is removed.

0 */6 * * * /var/lib/avast/Setup/avast.vpsupdate >>/var/log/avast/vpsupdate.log 2>&1

End: avast of crontab entry

Begin: avast of crontab entry

Do not add anything between ‘### Begin: avast …’ and ‘### End: avast …’ lines.

anything in between these lines will be removed when ‘avast’ package is removed.

0 * * * * /var/lib/avast/Setup/avast.vpsupdate 2>&1 | logger -t avast.vpsupdate -i -p daemon.warn

End: avast of crontab entry

One more error:

/var/lib/avast/Setup/avast.vpsupdate
Connecting to repository http://download.ff.avast.com/lin/x86_64/vps
VPS is up to date.
Can’t send all submit files

Sorry, I thought you were using the deb package. On RHEL (rpm) it is really /etc/sysconfig/avast, not /etc/default/avast.

Already known issue, will be fixed in next update.

I will have a look at it.

Any way to submit FP or undetected malware files directly from linux?

Technically, you can use the submit tool (/var/lib/avastSetup/submit) that is internally used
by avast when sending the statistics/heuristics submits manually, but it is not something we
expect the users will be doing…

Linux admins that will use avast will prefer to have such a tool :slight_smile: We can improve a lot detection rate on linux by giving users possibility to manual submit suspected files (or files detected by other antivirus/antimalware programs and not detected by avast under linux)

I have RC3 installed and licensed on my home Unbuntu server. I really want to test/try this before the license expires at the end of the month but I can not find any documentation. Can you please point me to a guide of some sort to get started?

Thanks.

BTW - I am a happy uses of Avast products on Windows, Android, and Linux desktop computers. I hope this will be the answer for my net facing media server (yes, I am paranoid ;D ).

Currently the documentation comes with the packages and is accessible in form of text files and manual pages after installation. Just add repositories from the OP and install avast just like other programs - using package manager for your distro (e.g. yum for Red Hat and apt for Debian).

After the installation manual pages are normally installed on your system, just run ‘man avast’, ‘man avast-proxy’ or ‘man avast-fss’ on command line.

After a VPS update, the old definitions appear to remain in /var/lib/avast/defs. Is this necessary? I removed the old definitions and scan worked fine. Seems like avast.setup could easily be changed to delete the old definitions.

Other than that, everything is working on Xubuntu 13.10 amd64. Scans seem faster than with avast4workstation_1.3.0-2.