Gomer Pyle: USMC: Season 5, Episode 11
Gomer, the Perfect M.P. (13 Dec. 1968)
Sergeant Carter puts Gomer on guard duty and orders him not to let anyone enter the base without identification, no exceptions. Then Gomer refuses the sergeant entry when Carter comes back for his forgotten wallet.