next up previous
Next: Testing Up: Installation Previous: Binary packages

Installation

Please read the README file in the current version, because it probably contains some important release notes. If you are installing ClamAV for the first time, you have to add a new user and group to your system - clamav: 3

	# groupadd clamav
	# useradd -g clamav -s /bin/false -c "Clam Antivirus" clamav

The above method works on Linux and Solaris, if you don't have groupadd, useradd please consult your system manual, the section about creating new users and groups. If you are not a system administrator, and won't be using Clam Antivirus in superuser mode, you may omit this step with the option -disable-clamav passed to configure:

	$ ./configure --disable-clamav
This disables testing for clamav user and group. Clam Antivirus still requires clamav for superuser mode. Please don't set a password on this account, just assure it's locked with "!" in /etc/passwd or /etc/shadow. It must be a normal, unprivileged user. Don't add it to any special groups.

Hint: If your system uses quotas it's a good idea to set bigger quota on this account. clamscan will extract compressed files to a temporary directory (default /tmp or user selected) with clamav priviledges. I strongly advise you to use filesystem quota for clamav if you want to avoid security problems. Some protections have already been implemented, check clamscan(1) manual for details.

After this, extract the archive, configure and compile:

	$ tar zxpvf clamav-x.yz.tar.gz
	$ cd clamav-x.yz
	$ ./configure; make
	$ su -c "make install"
That's all !
WARNING: Never set SUID/SGID bit on Clam Antivirus programs.


next up previous
Next: Testing Up: Installation Previous: Binary packages
Tomasz Kojm 2002-08-22