I have the same problem.
I don't yell at them. I open my door just enough so that they can see me, and then I stare at them until they leave. And if it's late, enough I'll flash a flashlight at them even if the corridor lights are on so the light gets in their faces.
I also found that saying nothing and then suddenly slamming the door is a good w......