It's a type of Planche
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

10 lines
494B

  1. # Add a watch to the /etc/hosts file watching for (-p) reads, writes, executions,
  2. # and appends named (-k) hosts-file which can be uniquely used to identify the
  3. # audit records produced by this rule. Check the /var/log/audit/audit.log file
  4. # for matching events.
  5. sudo auditctl -w /etc/hosts -p rwxa -k hosts-file
  6. # To remove the rule later change the -w to -W with the rest of the command being
  7. # the same. If you want to list all rules auditctl -l will show you all rules
  8. # currently loaded.