Using the useradd command on a Solaris 8 system how can I ensure that the account passwords I create have the following requirments:
1. Are 8 characters.
2. Have at least 3 characters in UPPER case.
For the password length you can edit /etc/default/passwd file and change the PASSLENGTH line to the desired number (max of 8 ?????).
I think that solaris is not able to resolve the uppercase problem. I've thought about it and maybe rewriting the passwd program code can be the solution.
Maybe it's better to create a wrapper for useradd and passwd. Create a script or a program that adds the user, checks that the supplied password satisfies the needs and then passes this password to the passwd program to modify the user's password. It shouldn't be too hard for example using Perl.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.