For a line making angles \( \alpha \), \( \beta \), and \( \gamma \) with the positive directions of the \( x \), \( y \), and \( z \)-axes respectively, the direction cosines of the line are:
\[
\cos \alpha = \frac{1}{\sqrt{1^2 + 1^2 + 1^2}}, \quad \cos \beta = \frac{1}{\sqrt{1^2 + 1^2 + 1^2}}, \quad \cos \gamma = \frac{1}{\sqrt{1^2 + 1^2 + 1^2}}.
\]
The angle \( \theta \) is determined by the geometry of the line and can take both positive and negative values based on the orientations of the line with respect to the axes. Thus, the correct answer is \( \pm \frac{\pi}{3} \).