We study the distribution of color electric flux of the three-quark system in quenched and full QCD (with N f 2 flavors of dynamical quarks) at zero and finite temperature. To reduce ultraviolet fluctuations, the calculations are done in the Abelian projected theory fixed to the maximally Abelian gauge. In the confined phase we find clear evidence for a Y-shape flux tube surrounded and formed by the solenoidal monopole current, in accordance with the dual superconductor picture of confinement. In the deconfined, high temperature phase monopoles cease to condense, and the distribution of the color electric field becomes Coulomb-like.