Step 1: Understanding the Concept
The angle between planes is the angle between their normals: \(\cos\theta=\dfrac{\vec{n_1}\cdot\vec{n_2}}{|\vec{n_1}||\vec{n_2}|}\).
Step 2: Normals
\(\vec{n_1}=(p,-1,2)\), \(\vec{n_2}=(2,-p,-1)\). \(\vec{n_1}\cdot\vec{n_2}=2p+p-2=3p-2\), and \(|\vec{n_1}|=|\vec{n_2}|=\sqrt{p^2+5}\).
Step 3: Equation
\(\dfrac{3p-2}{p^2+5}=\cos\dfrac\pi3=\dfrac12\Rightarrow p^2-6p+9=0\).
Step 4: Result
\((p-3)^2=0\), so \(p=3\).
Final Answer:
The value of p is 3.
\[ \boxed{\text{(D) }3} \]