Mimic what was done in d19d744 but for Solaris.
Merge pull request #5564 from s0undt3ch/hotfix/solaris-useradd

Mimic what was done in d19d744 but for Solaris.