Skip Navigation
ClamAV permissions problem: can't scan in home directories with clamdscan

I have installed ClamAV to scan for viruses. It has 2 commands for scanning: these are clamscan and clamdscan. I use clamdscan because it is faster.

However, clamdscan cannot scan within home directories, or any directory it does not have permissions for, even when running as root. clamscan does not have this problem.

1
How can I turn this shell script into a single line command?
  • Judging by the first line, this script is a set of Bash commands.

    If this line is there, when the script is executed it will run as a Bash script.

    This line is required for it to work as a Bash script; if it isn't there, it will execute using the kernel, and it won't work because it's not a binary program.

    If you want it all in one line, just copy and paste it into a terminal that already runs Bash, and exclude the first line. But why do you want it in one line in the first place? Multiline scripts have no performance drop, and they are more readable.

  • chaotic evil is for me
  • No love for twist ties here

  • Deleted
    *Permanently Deleted*
  • Crazy Ideas @lemmy.world Lanisicke @lemmy.world
    To prevent inter-human wars, build lots and lots of robots that the militaries of the world have to fight against

    A supervillain builds a bunch of robots to fight a war against everyone. The countries of the world will have to cooperate and make alliances to beat them.

    Plus, now it would actually be moral to build cool weapons.

    0
    Lanisicke Lanisicke @lemmy.world
    Posts 2
    Comments 3