Who gave you permission to enter?
Answer: A
The Auxiliary Verb that should be used with you is were and not was. Again, as the given sentence is an Interrogative sentence, in Passive form also, the sentence will be Interrogative, which is in Verb + Subject form. Keeping these two conditions in mind, if we judge the given options.