linux4noobs
linux4noobs Lanisicke 9 months ago 100%
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.

8
1
linux4noobs Linux 101 stuff. Questions are encouraged, noobs are welcome! How can I turn this shell script into a single line command?
Jump
  • Lanisicke Lanisicke 9 months ago 100%

    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.

    2
  • memes Memes chaotic evil is for me
    Jump
  • Lanisicke Lanisicke 12 months ago 100%

    No love for twist ties here

    3
  • crazyideas Crazy Ideas To prevent inter-human wars, build lots and lots of robots that the militaries of the world have to fight against
    Jump
  • Lanisicke Lanisicke 12 months ago 100%

    Even crazier than mine! Take my upvote.

    2
  • nostupidquestions No Stupid Questions *Permanently Deleted*
    Jump
  • Lanisicke Lanisicke 12 months ago 100%

    2
  • crazyideas Crazy Ideas Schedule a "drag" racing tour throughout the southern US.
    Jump
  • Lanisicke Lanisicke 12 months ago 100%
    1. Call the police to control the riot
    1
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearCR
    Crazy Ideas Lanisicke 12 months ago 60%
    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.

    1
    3
    linuxquestions Linux Questions Multiple Polkit errors on OpenSUSE Tumbleweed make the network unusable
    Jump
  • Lanisicke Lanisicke 1 year ago 100%

    Bloody hell! Wi-fi requires root? It never used to on Debian Bullseye or OpenSUSE Leap 15.3 a few years ago.

    Network service: which one? Partial output of systemctl:

    NetworkManager.service  loaded active running
    network-pre.target      loaded active active
    network.target          loaded active active
    
    1
  • linuxquestions
    Linux Questions Lanisicke 1 year ago 100%
    Multiple Polkit errors on OpenSUSE Tumbleweed make the network unusable

    On login, or when NetworkManager is restarted, an error message from PolicyKit 1 pops up: ``` System policy prevents enabling or disabling device statistics An application is attempting to perform an action that requires privileges. Authentication is required to perform this action. Password for root: ____ OK | Cancel ``` Call this Message 1. On attempting to turn Airplane Mode on/off, two more messages pop up in sequence. ``` System policy prevents enabling or disabling Wi-Fi devices An application is attempting to perform an action that requires privileges. Authentication is required to perform this action. Password for root: ____ OK | Cancel ``` ``` System policy prevents enabling or disabling mobile broadband devices An application is attempting to perform an action that requires privileges. Authentication is required to perform this action. Password for root: ____ OK | Cancel ``` Call these Messages 2A and 2B. On attempting to connect to Wi-Fi, another message pops up. ``` System policy prevents control of network connections An application is attempting to perform an action that requires privileges. Authentication is required to perform this action. Password for root: ____ OK | Cancel ``` Call this Message 3. Nothing happens (visibly) when message 1 is cancelled. When messages 2A and 2B are cancelled, airplane mode cannot be switched. Message 3 appears after I enter the Wi-Fi password. When message 3 is cancelled, Wi-Fi does not connect, and a notification appears. ``` Failed to add Network_SSID Not authorized to control networking. ``` I have modified 2 files in /etc/polkit-1. ::: spoiler /etc/polkit-1/localauthority/50-local.d/10-allow-network-manager.pkla ``` [Network Manager all Users] Identity=unix-user:* Action=org.freedesktop.NetworkManager.* ResultAny=no ResultActive=yes ::: ::: spoiler /etc/polkit-1/rules.d/10-org.freedesktop.NetworkManager.rules ``` polkit.addRule(function(action,subject) { if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("network")) { return polkit.Result.YES; } }); ``` ::: My user is in the "network" group. After making these modifications, messages 2A and 2B will still appear, but airplane mode will switch if they are cancelled. Messages 1 and 3 still appear. I am on an Acer laptop, with OpenSUSE Tumbleweed and KDE. What is the cause of this, and how can I fix it?

    1
    3