HDFS-5673: add validation for required user, group and other entries.