In Pokémon HeartGold/SoulSilver, the old man blocking the Viridian Gym entrance is Brock's father. He's not a villain—he's a worried dad.
He believes his son isn't ready to battle you. He fears for Brock's safety and wants him to gain more experience before facing challengers. It's a touching, if gameplay-halting, bit of character depth: Brock wants to prove himself, but his father's overprotectiveness stands in the way.
You can't fight or move the man. You must convince Brock to battle you. Talk to Brock (he's nearby), and he'll eventually accept the challenge, prompting his father to step aside.
It's a rare moment where a "roadblock" NPC has genuine emotional motivation—not just "you need the badge first."