What does a samurai work for before becoming a samurai?

A Samurai is a feudal rank in Japan. You had to be born Sumurai in order to be one.