The headmaster of a government higher primary school in Agasana Hundi, HD Kote taluk, allegedly sexually harassed two minor students.