my question is:
Given a line S: $$ \left\{ \begin{array}{c} x+y-1=0 \\ y+3z-2=0 \\ \end{array} \right. $$ I need to determine the equation of a sphere having the center on line S and tangent to the plane $z=0.$ The cartesian equation of the line S $= ( -1,2,0 ) + ( 3,-3,1 )t.$
Thanks in advance.
Take any point on the line and consider the sphere centered on this point, with a radius equal to $|z|$. It fulfills the requirements.