Let $R$ be a commutative ring and $\zeta$ be a root of unity in $R$ such that $\mathrm{ord}(\zeta) = n$. If $n = p_1^{e_1} \dots p_r^{e_r}$ is the decomposition in prime factors of $n$, is it true that there exists $r$ roots of unity $\zeta_i \in R$ such that $\mathrm{ord}(\zeta_i) = p_i^{e_i}$? In other words, if we denote by $Z^R$ the set of roots of unity in $R$ and $Z_n = \{ \zeta \in Z^R \mid \mathrm{ord}(\zeta) = n \}$, then
Is the map $Z_{p_1^{e_1}} \times \cdots \times Z_{p_r^{e_r}} \to Z_n$, $(\zeta_1, \dots , \zeta_r) \mapsto \zeta_1 \cdots \zeta_r$ surjective?
This comes from trying to prove that the map is bijective. For the injectivity part, I believe it's true. If $\zeta_1 \dots \zeta_r = \zeta_1' \dots \zeta_r'$, then $$\mathrm{ord}(\zeta_1)\cdots \mathrm{ord}(\zeta_r) = \mathrm{ord}(\zeta'_1) \cdots \mathrm{ord}(\zeta_r') = p_1^{e_1} \cdots p_r^{e_r}$$ and since the factorization is unique up to the other of the factors, we can assume that $\mathrm{ord}(\zeta_i) = \mathrm{ord}(\zeta'_i) = p_i^{e_i}$, and hence $(\zeta_1, \dots , \zeta_r) = (\zeta_1' , \dots , \zeta_r')$. So it's the subjectivity part I'm having trouble with. Any hint would be appreciated. Thank you.