It's a type of Planche
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

watch_file_for_changes_auditctl.sh 494B

123456789
  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.