<def-group>
  <definition class="compliance"
  id="userowner_shadow_file" version="1">
    <metadata>
      <title>Verify user who owns 'shadow' file</title>
      <affected family="unix">
        <platform>multi_platform_rhel</platform>
      </affected>
      <description>The /etc/shadow file should be owned by the
      appropriate user.</description>
      <reference source="MED" ref_id="20130807" ref_url="test_attestation" />
    </metadata>
    <criteria>
      <criterion comment="Check file ownership of /etc/shadow"
      test_ref="test_userowner_shadow_file" />
    </criteria>
  </definition>
  <unix:file_test check="all" check_existence="all_exist"
  comment="Testing user ownership of /etc/shadow"
  id="test_userowner_shadow_file" version="1">
    <unix:object object_ref="object_file_etc_shadow" />
    <unix:state state_ref="state_etc_shadow_uid_root" />
  </unix:file_test>
  <unix:file_state id="state_etc_shadow_uid_root"
  version="1">
    <unix:user_id datatype="int">0</unix:user_id>
  </unix:file_state>
  <unix:file_object comment="/etc/shadow"
  id="object_file_etc_shadow" version="1">
    <unix:filepath>/etc/shadow</unix:filepath>
  </unix:file_object>
</def-group>
