There is nothing wrong with a hug used as a greeting, especially if it's a close relative or somebody you haven't seen in a while. I find the more masculine forms of this (like the jock shoulder tap) are just guys trying to get around hugging each other. I think it shows insecurity, but that's just me.