<def-group>
  <definition class="compliance" id="accounts_password_all_shadowed" version="1">
    <metadata>
      <title>All Password Hashes Shadowed</title>
      <affected family="unix">
        <platform>CentOS 4</platform>
		<platform>CentOS 5</platform>
		<platform>Red Hat Enterprise Linux 4</platform>
		<platform>Red Hat Enterprise Linux 5</platform>
      </affected>
      <description>All password hashes should be shadowed.</description>
    </metadata>
    <criteria>
      <criterion comment="password hashes are shadowed" test_ref="test_accounts_password_all_shadowed" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="none_exist"
  comment="no password hashes in /etc/passwd."
  id="test_accounts_password_all_shadowed" version="1">
    <ind:object object_ref="obj_accounts_password_all_shadowed" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object comment="no password hashes in /etc/passwd."
  id="obj_accounts_password_all_shadowed" version="1">
    <ind:path>/etc</ind:path>
    <ind:filename>passwd</ind:filename>
    <ind:pattern operation="pattern match">^[a-zA-Z0-9\-_]+\:(?!x\:)([a-zA-Z0-9\-_$]+\:)\d+\:\d+\:.*$</ind:pattern>
    <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
