File: 31_example_exclude-homes

package info (click to toggle)
aide 0.19.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,516 kB
  • sloc: ansic: 12,399; sh: 6,718; lex: 635; makefile: 139; yacc: 138
file content (6 lines) | stat: -rw-r--r-- 178 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
#!/bin/bash

# this excludes the home directories of system accounts with
# uid >= 1000 from the AIDE check.

getent passwd | awk -v FS=":" '{ if( $3 >= 1000) { print "!" $6 }}'