Sponsored Content
Full Discussion: Password Construction
Special Forums Cybersecurity Password Construction Post 97492 by tumbikikani on Tuesday 31st of January 2006 04:39:50 AM
Old 01-31-2006
Password Construction

Could someone please help, I am new to unix and I am trying to do the following:

o Each password must have at least eight characters.
Only the first eight characters are significant.
PASSLENGTH is found in /etc/default/passwd and is set
to 6.

o Each password must contain at least two alphabetic
characters and at least one numeric or special char-
acter. In this case, "alphabetic" refers to all
upper or lower case letters.

o Each password must differ from the user's login name
and any reverse or circular shift of that login name.
For comparison purposes, an upper case letter and its
corresponding lower case letter are equivalent.

o New passwords must differ from the old by at least
three characters. For comparison purposes, an upper
case letter and its corresponding lower case letter
are equivalent.


How do I go about this, I am able to add the users, and manouver my way around. Smilie
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Matrix construction

Hi experts How to construct a rectangular matrix for a text file with 6012 rows and 2221 columns. Thank You (1 Reply)
Discussion started by: riyabio
1 Replies

2. Shell Programming and Scripting

Matrix construction

Hi I have to construct a rectangular matrix with 6012 rows and 2221 columns. Here the rows and columns were given by alphanumeric ids in a file named row.txt and column.txt respectively. with this row nd column ids I have to construct a matrix ie 6012*2221 and compare the column ids with... (0 Replies)
Discussion started by: riyabio
0 Replies

3. Shell Programming and Scripting

Help with regex construction

I am trying to construct a regular expression that will filter a log file containing the following table: aP mP mC,mI oP oC oF oI tP tI hP ... (8 Replies)
Discussion started by: euval
8 Replies

4. Shell Programming and Scripting

case construction for basic Arithmetics calculation

the scrip (q4.sh) should perform the following calcuation (+, -, / and *) it should be used like this: q4.sh number1 operation number2 I wrote it already but the "*" does not work. #!/bin/bash #Date: 2010.10.19 # un script qui utilisera une instruction case pour effectuer des opérations... (6 Replies)
Discussion started by: flash80
6 Replies

5. Web Development

Website construction nowaday!

Hello, Actually I am not sure how to ask this question, which is about the technique advance on website construction/design. Compared with HTML/CSS, which ones are the most popular for website construction? My colleague recommends Drupal for Linux platform. Any other? Thanks! Yifang (4 Replies)
Discussion started by: yifangt
4 Replies

6. Shell Programming and Scripting

Grep command construction

Hi, I have an array variable "arr" that reads string from a file "vari.txt". Thus, the array will be of variable length depending how many entries are present in "vari.txt" I use a for loop to traverse through the array. However, i need a grep command to grep for a file "output.txt" and... (3 Replies)
Discussion started by: mohtashims
3 Replies
Password(3pm)						User Contributed Perl Documentation					     Password(3pm)

NAME
Data::Password - Perl extension for assesing password quality. SYNOPSIS
use Data::Password qw(IsBadPassword); print IsBadPassword("clearant"); # Bad password - contains the word 'clear', only lowercase use Data::Password qw(:all); $DICTIONARY = 0; $GROUPS = 0; print IsBadPassword("clearant"); DESCRIPTION
This modules checks potential passwords for crackability. It checks that the password is in the appropriate length, that it has enough character groups, that it does not contain the same chars repeatedly or ascending or descending characters, or charcters close to each other in the keyboard. It will also attempt to search the ispell word file for existance of whole words. The module's policies can be modified by changing its variables. (Check "VARIABLES"). For doing it, it is recommended to import the ':all' shortcut when requiring it: use Data::Password qw(:all); FUNCTIONS
1. IsBadPassword(password) Returns undef if the password is ok, or a textual description of the fault if any. 2. IsBadPasswordForUNIX(user, password) Performs two additional checks: compares the password against the login name and the "comment" (ie, real name) found on the user file. VARIABLES
1. $DICTIONARY Minimal length for dictionary words that are not allowed to appear in the password. Set to false to disable dictionary check. 2. $FOLLOWING Maximal length of characters in a row to allow if the same or following. If $FOLLOWING_KEYBOARD is true (default), the module will also check for alphabetical keys following, according to the English keyboard layout. Set $FOLLOWING to false to bypass this check. 3. $GROUPS Groups of characters are lowercase letters, uppercase letters, digits and the rest of the allowed characters. Set $GROUPS to the number of minimal character groups a password is required to have. Setting to false or to 1 will bypass the check. 4. $MINLEN $MAXLEN Minimum and maximum length of a password. Both can be set to false. 5. @DICTIONARIES Location where we are looking for dictionary files. You may want to set this variable if you are using not *NIX like operating system. FILES
o /usr/share/dict/web2 o /usr/share/dict/words o /etc/passwd SEE ALSO
See Data::Password::BasicCheck if you need only basic password checking. AUTHOR
Raz Information Systems, razinf@cpan.org, raz@raz.co.il. COPYRIGHT
Copyright (c) 2001 - 2006 Raz Information Systems Ltd. http://www.raz.co.il/ This package is distributed under the same terms as Perl itself, see the Artistic License on Perl's home page. perl v5.12.3 2011-05-23 Password(3pm)
All times are GMT -4. The time now is 07:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy