I think it kind of depends on whether they appear to be friendly or not. I always approach them cautiously (sp?) and let them sniff my hand first. If they tense at all, I will back away and leave them be. But if the owner is around, I feel a lot more comfortable approaching a strange dog.