This raccoon visited our camp every night. She (we decided she looked feminine) seemed almost tame. She boldly walked among us in the dark, showing no fear, only revealing herself by the soft patter of her feet a foot behind us, or her nose gently nuzzling the trash. I suspect other campers gave into her charms and fed her. We named her Cooler.
She wasn’t able to get into the cans.
These defenses kept this raccoon out of the the food, but obviously the bag is at bear dining height and the rocks on the cooler would also be no challenge.
Yelling at her or shining our flashlights in her direction had little effect. But flash photography seemed to annoy her enough to make her go away until I went to sleep.