usbguard(1)

NAME

   usbguard -- USBGuard command-line interface

SYNOPSIS

   usbguard [OPTIONS] command [COMMAND-OPTIONS] ...

   usbguard list-devices

   usbguard allow-device <id>

   usbguard block-device <id>

   usbguard reject-device <id>

   usbguard list-rules

   usbguard append-rule <rule>

   usbguard remove-rule <id>

   usbguard generate-policy

   usbguard watch

   usbguard read-descriptor <file>

DESCRIPTION

   The  usbguard  command  provides  a command-line interface (CLI) to the
   usbguard-daemon(8) instance and provides a tool for generating  initial
   USBGuard policies.

SUBCOMMANDS

   list-devices

   List all USB devices recognized by the USBGuard daemon.

   Available options:

   -a, --allowed
          List allowed devices.

   -b, --blocked
          List blocked devices.

   -h, --help
          Show help.
   ~ ~ ~

   allow-device [OPTIONS] <id>

   Authorize  a  device  identified  by the device id to interact with the
   system.

   Available options:

   -p, --permanent
          Make the decision permanent.  A device specific allow rule  will
          be appended to the current policy.

   -h, --help
          Show help.
   ~ ~ ~

   block-device [OPTIONS] <id>

   Deauthorize a device identified by the device id.

   Available options:

   -p, --permanent
          Make  the decision permanent.  A device specific block rule will
          be appended to the current policy.

   -h, --help
          Show help.
   ~ ~ ~

   reject-device [OPTIONS] <id>

   Deauthorize and remove a device identified by the device id.

   Available options:

   -p, --permanent
          Make the decision permanent.  A device specific reject rule will
          be appended to the current policy.

   -h, --help
          Show help.
   ~ ~ ~

   list-rules [OPTIONS]

   List the rule set (policy) used by the USBGuard daemon.

   Available options:

   -h, --help
          Show help.
   ~ ~ ~

   append-rule [OPTIONS] <rule>

   Append the rule to the current rule set.

   Available options:

   -a, --after <id>
          Append the new rule after a rule with the specified rule id.

   -h, --help
          Show help.
   ~ ~ ~

   remove-rule [OPTIONS] <id>

   Remove a rule identified by the rule id from the rule set.

   Available options:

   -h, --help
          Show help.
   ~ ~ ~

   generate-policy [OPTIONS]

   Generate  a  rule set (policy) which authorizes the currently connected
   USB devices.

   Available options:

   -p, --with-ports
          Generate port specific rules for all devices.  By default,  port
          specific  rules  are  generated  only  for  devices which do not
          export an iSerial value.

   -P, --no-ports-sn
          Don't generate  port  specific  rules  for  devices  without  an
          iSerial  value.   Without  this  option,  the  tool  will  add a
          via-port attribute to any device that doesn't provide  a  serial
          number.  This is a security measure to limit devices that cannot
          be uniquely identified to connect  only  via  a  specific  port.
          This  makes it harder to bypass the policy since the real device
          will occupy the allowed USB port most of the time.

   -t, --target <target>
          Generate an explicit "catch all" rule with the specified target.
          The  target  can  be  one of the following values: allow, block,
          reject

   -X, --no-hashes
          Don't generate a hash attribute for each device.

   -H, --hash-only
          Generate a hash-only policy.

   -h, --help
          Show help.
   ~ ~ ~

   watch [OPTIONS]

   Watch the IPC interface events and print them to stdout.

   Available options:

   -h, --help
          Show help.
   ~ ~ ~

   read-descriptor [OPTIONS] <file>

   Read a USB descriptor from a file and print it in human-readable form.

   Available options:

   -h, --help
          Show help.

EXAMPLES

   Creating an initial policy

              $ sudo usbguard generate-policy > rules.conf
              $ vi rules.conf
              (review/modify the rule set)
              $ sudo install -m 0600 -o root -g root \
                 rules.conf /etc/usbguard/rules.conf

BUGS

   If you find a bug in this software  or  if  you'd  like  to  request  a
   feature    to    be    implemented,    please    file   a   ticket   at
   <https://github.com/dkopecek/usbguard/issues/new>.

COPYRIGHT

   Copyright  2015 Red Hat, Inc.  License GPLv2+: GNU GPL  version  2  or
   later  <http://gnu.org/licenses/gpl.html>.   This is free software: you
   are free to change and redistribute it.  There is NO WARRANTY,  to  the
   extent permitted by law.

SEE ALSO

   usbguard-rules.conf(5), usbguard-daemon(8), usbguard-daemon.conf(5)

AUTHORS

   Daniel Kopeek <[email protected]>.

                               June 2016                       USBGUARD(1)



Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.


Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.

Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.


Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.

Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.


Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.

Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.