[svlug] testing a password with bash.
Paul Reiber
reiber at gmail.com
Thu May 1 08:01:00 PDT 2008
use sed.
-pbr
On Thu, May 1, 2008 at 3:29 AM, James Sparenberg <james at linuxrebel.org> wrote:
> All,
>
> Bash question for all of you. I'm putting together a script that reaches
> out to all my systems based on user role, and can either add, del, or update
> a users name/passwd. Now comes the question.
>
> I want to be able to verify quality of the password. # of characters is
> easy. pipe it through wc -m and see if it's greater than the minimum. How
> though would you recommend I go about verifying things like
>
> 1. Not based on Dictionary word.
> 2. Has Upper and lower case
> 3. Contains at least 1 number or special character.
>
> Special rules of sort. It has to work on FreeBSD, RH and Debian. I run a
> multi-Ethnic environment ;) here and need to be sure that ever system
> produces the same results.
>
> Suggestions? (and switching to XYZ lang isn't really an option here.)
>
> James
>
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/svlug
>
More information about the svlug
mailing list