Advertisement
fduran

Linux file integrity with tripwire

Apr 21st, 2011
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.74 KB | None | 0 0
  1. # crucial files integrity check with tripwire http://sourceforge.net/projects/tripwire/
  2. # www.fduran.com
  3.  
  4. apt-get update
  5. apt-get install tripwire (enter 2 passwords)
  6.  
  7. # in /etc/tripwire/twpol.txt :
  8. # a) in /root section comment out all of them minus result of:
  9. ls -la /root
  10. # ex:: .bash_history , .bashrc , .profile
  11. # b) comment out /proc
  12.  
  13.  
  14. # create initial binary policy from text policy:
  15. twadmin --create-polfile --polfile tw.pol twpol.txt
  16.  
  17. # create initial database:
  18. tripwire --init --polfile tw.pol
  19.  
  20. # change & recreate policy file until no more false positives / warnings
  21.  
  22. # check:
  23. tripwire --check
  24.  
  25. # crontab daily or weekly: /usr/sbin/tripwire --check 2&>1 > /dev/null
  26.  
  27. # reports stored in
  28. less /var/lib/tripwire/report/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement