Who is used when referring to the subject of the sentence, while whom is used to refer to an object of a verb.
In sentence one, who is used correctly because it is the subject of the sentence.
In Sentence two, whom should be replaced with who.
In sentence three, who is used correctly because it is the subject.
In the last sentence, whom should be replaced with who.