Is that from “No Time for Sergeants” with Andy Griffith?
Yes, Griffith’s character rigged the toilets to `salute’ wanting to impress the CO.
What was the movie where a private was being hounded by his sarge about not cleaning the toilets, so he really scrubbed one.
Then he put some peanut butter under the rim. When the sarge saw it and flipped, he scooped a finger full and sampled it.
Was it No Time For Sergeants?