lchown isn't a program, it's a C function provided by `unistd.h`. The error 
likely has to do with the permissions of the /var/log/clamav directory (if it 
exists), and which user the program is running as.

-Micah 

> -----Original Message-----
> From: clamav-users <clamav-users-boun...@lists.clamav.net> On Behalf Of
> Keith Graber
> Sent: Friday, April 23, 2021 1:16 PM
> To: 'clamav-users@lists.clamav.net' <clamav-users@lists.clamav.net>
> Subject: [clamav-users] Can't start clamd - lchown to user failed
> 
> Hello everyone,
> 
> I'm running a Ubuntu 20.04 server.  I've had ClamAV installed and running with
> on-access successfully.
> 
> I did an apt upgrade that included ClamAV v0.103.2 and since then I can't get
> clamd to start.
> 
> The error is: ERROR: lchown to user 'clamav' failed on log file
> '/var/log/clamav/clamav.log'. Error was 'Operation not permitted'
> 
> lchown is not installed on my system and I'm not finding it in the Ubuntu
> software repository.  Searching the web led me to a lchown man page that
> states this is for changing syslinks, but /var/log/clamav/clamav.log is not a
> syslink'd file.
> 
> Is lchown a new requirement for v0.103.2?
> 
> How can I get clamd working again?
> 
> Thanks!
> 
> Keith Graber
> 
> _______________________________________________
> 
> clamav-users mailing list
> clamav-users@lists.clamav.net
> https://lists.clamav.net/mailman/listinfo/clamav-users
> 
> 
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
> 
> http://www.clamav.net/contact.html#ml

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to