Does clamav need a home directory?

Richard G

Verified User
Joined
Jul 6, 2008
Messages
12,571
Location
Maastricht
Just installed Clamav via Custombuild.

Looks like all goes well, except the last part:
ERROR: Please edit the example config file /etc/freshclam.conf
ERROR: Can't open/parse the config file /etc/freshclam.conf
Restarting freshclam.
Shutting down freshclam: [FAILED]
Starting freshclam: [ OK ]
Restarting clamd.
Shutting down clamd: [FAILED]
Starting clamd: LibClamAV Error: cli_loaddb(): No supported database files found in /usr/share/clamav
ERROR: Can't open file or directory
[FAILED]
Restarting exim.
Shutting down exim:
Starting exim:
Done ClamAV.
1.) /etc/freshclam.conf is present so is the /usr/share/clamav directory with clamav as owner.
2.) /etc/passwd says clamav:x:493:493::/home/clamav:/bin/false but no /home/clamav is present

I fixed it like this:
Made a clam-update.log with clamav owner in /var/log and used this command as root:
Code:
/usr/bin/freshclam -v -l /var/log/clam-update.log
This was not mentioned in http://help.directadmin.com/item.php?id=370
Now a database is made and clamav will start

I looks like everything is OK now, but I just wonder.
Does clamav also need a home directory or is this only present in the account (/etc/passwd) and not needed?
 
Hi Sellerone.

I already stated that the "freshclam -v" fixed the error for me.:)

The only question which was and still is remaining is if clamav does or not need a home directory.
 
Last edited:
No it doesnt need a home dir it is never logging in.
 
Last edited:
Back
Top