reposting with all 4 questions in one :
I am trying to parse below regex's and it does not work with tripwire. can you please verify this and advise what should be changed to fix this :
1. policy - "Verify That Exported File Systems Specify the ro (read-only) Option" regex - ^[#].*-o[\ \t]+(?!ro[\ \t]+|ro[=,]\S+|\S+,ro[=,]\S+|\S+,ro[\ \t]+).*$
2. This test verifies that all exported file systems found in /etc/exports specify a fully qualified domain name containing "thcss.com" or a NIS netgroup. regex - ^[^#].*(?
?:ro|rw|root)=|
(?!\b(?:[a-z0-9]+(?:-[a-z0-9]+)*\.)+thecss\.com\b|@[a-z0-9]+)(?:\S+)
3. This test verifies that exported file systems do not have the "root=" option specified. regex - ^[^#].*-o[\ \t]+(?=root=\S+|\S+,root=\S+).*
4. Perform the following to determine if the system is configured as recommended: # grep -v '^#' /etc/dfs/dfstab | grep 'share' | grep -v '/usr/sbin/share' [there should be no output]
need help with regex on this.
the dfstab contains # and blank lines