usbguard icon indicating copy to clipboard operation
usbguard copied to clipboard

Question: How to change HidePII and PresentControllerPolicy settings via CLI

Open solidc0re opened this issue 2 years ago • 1 comments

Hi there,

I've been a happy user of USBGuard for a while and I'm going to include it in a script I am writing to harden Fedora's immutable spins.

I'd like to automate changing the HidePII and PresentControllerPolicy before starting the service and wondered if there was a way of doing this through the command line.

I've attempted sudo usbguard set-parameter HidePII true to no avail.

I'm happy to use the sed command to update the usbguard-daemon.conf file directly, but thought I'd ask here in case there's a baked-in way of doing it within usbguard/usbguard-daemon.

Many thanks in advance _/_

solidc0re avatar Aug 30 '23 16:08 solidc0re

You can only run set-parameter when the daemon is up and not all options have support for that.

radosroka avatar Nov 16 '23 14:11 radosroka