In general the factorization of a polynomial of the form $x^n-1$ over $\Bbb{F}_p$ is roughly equivalent to producing lists of irreducible polynomials over $\Bbb{F}_p$. This is because all irreducible polynomials $p(x)$ over $\Bbb{F}_p$, with the exception of $p(x)=x$ occur as factors (see the comments below).
Anyway, the following things are easy to see:
- If $n=p^km$ with $p\nmid m$, then $$x^n-1=(x^m-1)^{p^k}.$$ Therefore it suffices to study the case $p\nmid n$.
- The characteristic zero factorization in to cyclotomic polynomials still holds over $\Bbb{F}_p$: $$x^n-1=\prod_{d\min n}\Phi_d(x).$$ The difference is that the polynomials $\Phi_d(x)$ are no longer irreducible in general modulo $p$.
- Using Galois theory of the extensions of finite fields it is easy to see that when $p\nmid n$, the factors of $\Phi_n(x)$ modulo $p$ all have the same degree $f$, where $f$ is the smallest positive integer with the property $n\mid p^f-1$. In other words $f$ is the order of the coset of $p$ in the multiplicative group $\Bbb{Z}_n^*$. This has been explained many times on our site (ask if you cannot locate such a thread).
However, finding the individual irreducible factors of cyclotomic polynomials $\Phi_n(x)$ over $\Bbb{F}_p$ is not straightforward. There are tricks, and if those fail there is Berlekamp's algorithm. Too long to fit here.