It's best practice to scare a bear away from human food, yelling at it making loud noises from a safe distance. Most bears will run away if you get loud with them in this type of setting, be angry with it, not laughing and smiling like it's alright. It's not safe for a bear to feel welcomed to being around humans and eating human food. I understand everyone doesn't know this, just sharing as a retired Park Ranger. Thanks.