[clamav-users] Clam user has read permissions, but I still get "lstat() failed: Permission denied"
Scott Kitterman
debian at kitterman.com
Tue Oct 30 22:08:09 UTC 2018
On Tuesday, October 30, 2018 07:01:40 PM Doug Ingham wrote:
> >and make sure user www-data has at least read and execute permissions
>
> If www-data didn't have r/w access to that directory, my site would be
> broken!
>
> From the (redacted) comand output I copied above:
> >> root at arquivos0:/var/www# sudo -u clamav ls nc_data/
> >> [correct directory contents listed]
>
> I do normally mount /var noexec, however I had to remount it exec when I
> ran dpkg-reconfigure, so that's not it. I've just tested it with /tmp also
> mounted exec, however that still didn't fix the problem.
>
> > Apparmor/SE Linux is another possibility.
>
> Neither are installed on this server.
>
> BTW, I'm running Ubuntu 16.04 & ClamAV 0.100.2/25075/Mon.
Did you explicitly remove Apparmor? It's shipped by default in Ubuntu and the
Ubuntu clamav has an Apparmor profile included.
Scott K
More information about the clamav-users
mailing list