Jump to content

ClamAV "Access Denied"

Go to solution Solved by Guest,

This is because "clamdscan" runs as user clamav which doesn't have permission to access your files. Use "clamscan" instead

"clamdscan" is for software integration, otherwise you can use "clamdscan --fdpass path/to/scan". --fdpass passes file permissions to clamdscan.

Hi all,

 

I brought a relative's old laptop back to life with a copy of Xubuntu, and I recently installed ClamAV (although I'm not quite sure I did everything right).

 

Whenever I initiate a scan in the terminal, a lot of areas seem to have an "Access Denied" error.

Here's the full log, which came after I inputted "sudo clamdscan"

 

-----

 

/home/xubi/.Xauthority: Access denied. ERROR
/home/xubi/.xsession-errors: Access denied. ERROR
/home/xubi/.xsession-errors.old: Access denied. ERROR
/home/xubi/.bash_history: Access denied. ERROR
/home/xubi/.pEp_management.db: Access denied. ERROR
/home/xubi/.pEp_management.db-wal: Access denied. ERROR
/home/xubi/.pEp_management.db-shm: Access denied. ERROR
/home/xubi/.config/user-dirs.dirs: Access denied. ERROR
/home/xubi/.config/libreoffice/4: lstat() failed: Permission denied. ERROR
/home/xubi/.config/xfce4/xfconf/xfce-perchannel-xml: lstat() failed: Permission denied. ERROR
/home/xubi/.config/xfce4/xfwm4: lstat() failed: Permission denied. ERROR
/home/xubi/.config/xfce4/desktop: lstat() failed: Permission denied. ERROR
/home/xubi/.config/xfce4/terminal: lstat() failed: Permission denied. ERROR
/home/xubi/.config/xfce4/src/misc: lstat() failed: Permission denied. ERROR
/home/xubi/.config/pulse: lstat() failed: Permission denied. ERROR
/home/xubi/.config/gtk-3.0: lstat() failed: Permission denied. ERROR
/home/xubi/.config/update-notifier: lstat() failed: Permission denied. ERROR
/home/xubi/.config/dconf: lstat() failed: Permission denied. ERROR
/home/xubi/.config/Thunar: lstat() failed: Permission denied. ERROR
/home/xubi/.config/Mousepad: lstat() failed: Permission denied. ERROR
/home/xubi/.gnupg: lstat() failed: Permission denied. ERROR
/home/xubi/.cache/sessions: lstat() failed: Permission denied. ERROR
/home/xubi/.cache/thumbnails: lstat() failed: Permission denied. ERROR
/home/xubi/.cache/obexd: lstat() failed: Permission denied. ERROR
/home/xubi/.cache/gstreamer-1.0/registry.x86_64.bin: Access denied. ERROR
/home/xubi/.cache/mozilla: lstat() failed: Permission denied. ERROR
/home/xubi/.cache/xfce4/notifyd/icons: lstat() failed: Permission denied. ERROR
/home/xubi/.cache/thunderbird: lstat() failed: Permission denied. ERROR
/home/xubi/.local/share: lstat() failed: Permission denied. ERROR
/home/xubi/.mozilla: lstat() failed: Permission denied. ERROR
/home/xubi/snap/vlc/1700/.config: lstat() failed: Permission denied. ERROR
/home/xubi/snap/vlc/1700/.local/share/vlc: lstat() failed: Permission denied. ERROR
/home/xubi/snap/vlc/common/vlcrc: Access denied. ERROR
/home/xubi/snap/vlc/common/.cache/vlc: lstat() failed: Permission denied. ERROR
/home/xubi/snap/bitwarden/28/.pki: lstat() failed: Permission denied. ERROR
/home/xubi/snap/bitwarden/28/appdata: lstat() failed: Permission denied. ERROR
/home/xubi/snap/signal-desktop/327/.config: lstat() failed: Permission denied. ERROR
/home/xubi/snap/signal-desktop/327/.pki: lstat() failed: Permission denied. ERROR
/home/xubi/snap/signal-desktop/common/.cache/mesa_shader_cache: lstat() failed: Permission denied. ERROR
/home/xubi/snap/audacity/675/.config: lstat() failed: Permission denied. ERROR
/home/xubi/snap/audacity/666/.config: lstat() failed: Permission denied. ERROR
/home/xubi/.thunderbird: lstat() failed: Permission denied. ERROR
/home/xubi/.pEp: lstat() failed: Permission denied. ERROR

----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 43
Time: 19.643 sec (0 m 19 s)

 

-----

 

Link to comment
https://linustechtips.com/topic/1237237-clamav-access-denied/
Share on other sites

Link to post
Share on other sites

This is because "clamdscan" runs as user clamav which doesn't have permission to access your files. Use "clamscan" instead

"clamdscan" is for software integration, otherwise you can use "clamdscan --fdpass path/to/scan". --fdpass passes file permissions to clamdscan.

Link to comment
https://linustechtips.com/topic/1237237-clamav-access-denied/#findComment-13947388
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×