When may you pass on the right shoulder of the road?

If you pass on the right, do so only when conditions permit you to do so safely. Under no circumstances are you allowed to drive off the pavement or onto the shoulder.
DMV Writen Test