When I installed the OS I left ClamAV checked cause I figured this day and age even being on Linux better safe than sorry. Now every time I got to update it I have to give ownership of /var/lib/clamav/ to active user using Rootactions. I find this odd since I give ownership to the active user using the same method for /mnt/ before creating my folders in it for my secondary drives and partitions, and it never reverts the ownership. Iβm assuming var is handled by the system than mnt is. That said how do I keep the system from reverting varβs permissions back so I donβt have to give the active user ownership every time ClamAV updates? Thanks
ββ 03:36:22 - Update ClamAV Database(FreshClam) ββββββββββββββββββββββββββββββββ
ClamAV update process started at Fri Aug 23 03:36:22 2024
ERROR: Can't create temporary directory /var/lib/clamav/tmp.8f1e9794be
Hint: The database directory must be writable for UID 1000 or GID 1002
ERROR: Update failed.
ClamAV Databases failed:
0: Command failed: `/usr/bin/freshclam`
1: `/usr/bin/freshclam` failed: exit status: 10
Location:
src/steps/generic.rs:958
Retry? (y)es/(N)o/(s)hell/(q)uit
freshclam needs superuser access. However, you can enable and start the clamav-freshclam.service as superuser once, which runs every two hours or can overridden in /etc/clamav/freshclam.conf.
OK even with the service running Iβm back to the below. I know itβs not a issue with systemd cause I have 6 other items that I did the below for and all are running fine.
OK still no love. I went ahead and just on that folder after that didnβt work did sudo chmod 777 /var/lib/clamav/. Worked, but will know for sure tomorrow when I do updates again if it keeps working.
Since nothing seems to be working what command would I use to give myself ownership of that folder? Iβm thinking that when I do updates I need ownership of the folder for updates to finish without hanging so I would create a ZSH alias for that command and Topgrade to run together.
Cleanly install it. freshclam requires superuser privileges. The alternative is to enable the systemd service. If the service fails with permission issues, it must be reported upstream as a bug.
Yea maybe I send them a detailed email so they create an account for me and I can report it to them. This is their version of ClamAV, right? I ask cause I always thought the Extra repo was KDEβs. Thanks
Arch Linux takes ClamAVβs code or binaries and packages the files to be later used by the Arch Linux package management system. This repository contains what Arch Linux maintainers use to create the package for you.