<def-group>
  <definition class="compliance" id="accounts_no_uid_except_zero" version="1">
    <metadata>
      <title>UID 0 Belongs Only To Root</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>Only the root account should be assigned a user id of 0.</description>
    </metadata>
    <criteria>
      <criterion comment="tests for reg exp ^[^r][^o][^o][^t].*:0 in /etc/passwd file" test_ref="test_accounts_no_uid_except_root" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="tests for reg exp ^[^r][^o][^o][^t].*:0 in /etc/passwd file" id="test_accounts_no_uid_except_root" version="1">
    <ind:object object_ref="object_accounts_no_uid_except_root" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_accounts_no_uid_except_root" version="1">
    <ind:path>/etc</ind:path>
    <ind:filename>passwd</ind:filename>
    <ind:pattern operation="pattern match">^(?!root:)[^:]*:[^:]:0</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
