Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

useradd and Passwords

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
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.


Thanks very much!
 
Hello,

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.

Bye,

jmiturbe
 
>> /etc/default/passwd file and change the PASSLENGTH

This was found to be adequate as Sun already enforces C2 via requirement alphanumeric passwords etc.

Thanks jmiturbe!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top