Good and Bad Smells

What determines whether a person finds a smell pleasant or unpleasant?

I’m sure to some degree it’s learned, but are there smells which all people across all cultures find repulsive? I imagine the smell of rotting human would be pretty repulsive across the board.

Is there something common between the airborne chemicals that our brains interpret as good or bad?