This is one of the reasons I camp at Hampton Inns....
Interesting note I got from the Rangers on the Blue Ridge bears are attracted to food sure, and anything that smells sweet.
They strongly encourage keeping toothpaste and deodorant in bear safe containers.
Of course the whole time I'm wondering about the deodorant I'm wearing..... Stunk for the rest of the week, and had bad breath, but no bears!