KlamAv virus scanner Access Denied

Asked by William Pabon

When Klamav is scanning I get a great amount of access denied messages. I assume that the scanner is not able to open the file for scanning. How do I correct this? Thanks.
wp

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu klamav Edit question
Assignee:
No assignee Edit question
Solved by:
William Pabon
Solved:
Last query:
Last reply:
Revision history for this message
Nathan Heafner (nathan1465-5) said :
#1

Hello William

you need to run KlamAV with admin rights by opening terminal by pressing CTRL+ALT+T and typing in

sudo klamav

http://ubuntuforums.org/showthread.php?t=1669062

Revision history for this message
William Pabon (williepabon) said :
#2

Nathan:

I'm getting the following error:

williepabon@WP-WrkStation:~$ sudo klamav
[sudo] password for williepabon:
kbuildsycoca running...
Error: "/var/tmp/kdecache-williepabon" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-williepabon" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-williepabon" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-williepabon" is owned by uid 1000 instead of uid 0.
QLayout "unnamed" added to Klamav "KlamAV ", which already has a layout
williepabon@WP-WrkStation:~$ Error: "/var/tmp/kdecache-williepabon" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-williepabon" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-williepabon" is owned by uid 1000 instead of uid 0.

Revision history for this message
Nathan Heafner (nathan1465-5) said :
#3

Does Klamav open up still when you type in sudo klamav in the terminal?

Revision history for this message
Nathan Heafner (nathan1465-5) said :
#4

Please try running this in terminal

sudo chown root.root /tmp/kde-williepabon

then attempt to open klamav

Revision history for this message
William Pabon (williepabon) said :
#5

Nathan:

Yes, Klamav opens. This is what I get when I try your suggestion.

williepabon@WP-WrkStation:~$ sudo chown root.root /tmp/kde-williepabon
[sudo] password for williepabon:
chown: cannot access `/tmp/kde-williepabon': No such file or directory

Revision history for this message
Nathan Heafner (nathan1465-5) said :
#6

sorry try
sudo chown root.root /tmp/kdecache-williepabon

Revision history for this message
William Pabon (williepabon) said :
#7

Nathan: Same response as shown:

williepabon@WP-WrkStation:~$ sudo chown root.root /tmp/kdecache-williepabon
[sudo] password for williepabon:
chown: cannot access `/tmp/kdecache-williepabon': No such file or directory
williepabon@WP-WrkStation:~$

Revision history for this message
William Pabon (williepabon) said :
#8

Nathan:

Found the problem:
The command line is sudo chown root.root /var/tmp/kdecache-williepabon

Still need to know how to update virus signatures without getting an access denied error.
Thanks

Revision history for this message
Nathan Heafner (nathan1465-5) said :
#9

might I ask what you are using Klamav for?

https://help.ubuntu.com/community/Antivirus

Revision history for this message
William Pabon (williepabon) said :
#10

A bit paranoid. For the unlikely possibility that my Linux machine might be infected.
wp

Revision history for this message
Nathan Heafner (nathan1465-5) said :
#11