Difference between revisions of "Cracklib"
Line 35: | Line 35: | ||
make install && | make install && | ||
− | + | mv -v /usr/lib/libcrack-2.8.0.so /lib && | |
− | mv -v /usr/lib/ | + | mv -v /usr/lib/libcrack-2.8.0.so /lib && |
− | + | ln -svf ../../lib/libcrack-2.8.0.so /usr/lib/libcrack.so | |
− | mv -v /usr/lib/ | ||
− | ln -svf ../../lib/ | ||
Install the dictionary: | Install the dictionary: | ||
Line 66: | Line 64: | ||
make install && | make install && | ||
− | + | mv -v /usr/lib/libcrack-2.8.0.so /lib && | |
− | mv -v /usr/lib/ | + | mv -v /usr/lib/libcrack-2.8.0.so /lib && |
− | + | ln -svf ../../lib/libcrack-2.8.0.so /usr/lib/libcrack.so | |
− | mv -v /usr/lib/ | ||
− | ln -svf ../../lib/ | ||
=== N32 === | === N32 === | ||
Line 83: | Line 79: | ||
make install && | make install && | ||
− | + | mv -v /usr/lib32/libcrack-2.8.0.so /lib32 && | |
− | mv -v /usr/lib32/ | + | mv -v /usr/lib32/libcrack-2.8.0.so /lib32 && |
− | + | ln -svf ../../lib32/libcrack-2.8.0.so /usr/lib32/libcrack.so | |
− | mv -v /usr/lib32/ | ||
− | ln -svf ../../lib32/ | ||
=== 64Bit === | === 64Bit === | ||
Line 100: | Line 94: | ||
make install && | make install && | ||
− | + | mv -v /usr/lib64/libcrack-2.8.0.so /lib64 && | |
− | mv -v /usr/lib64/ | + | mv -v /usr/lib64/libcrack-2.8.0.so /lib64 && |
− | + | ln -svf ../../lib64/libcrack-2.8.0.so /usr/lib64/libcrack.so | |
− | mv -v /usr/lib64/ | ||
− | ln -svf ../../lib64/ | ||
Install the dictionary: | Install the dictionary: |
Revision as of 08:49, 5 July 2008
Download Source: |
---|
http://prdownloads.sourceforge.net/cracklib/cracklib-2.8.22.tar.gz |
http://downloads.sourceforge.net/cracklib/cracklib-words-20080507.gz (Recommended word list for English-speaking countries) |
Download Optional Patch: |
http://svn.cross-lfs.org/svn/repos/patches/cracklib/cracklib-2.8.22-heimdal-2.patch (Required patch to create a library used with the Heimdal Kerberos 5 package) |
Contents
Introduction to Cracklib
Cracklib is used to enforce strong passwords. It uses its dictionary of words to verify that passwords are difficult to crack.
Project Homepage: http://sourceforge.net/projects/cracklib/
Dependencies
Optional
Non-Multilib
If desired, apply the Heimdal patch (note that with this patch the original library is not affected; this patch only creates an additional library used by the Heimdal password-checking routines):
patch -Np1 -i ../cracklib-2.8.22-heimdal-2.patch
Configure and compile the package:
./configure --prefix=/usr -with-default-dict=/lib/cracklib/pw_dict && make
Install the package:
make install && mv -v /usr/lib/libcrack-2.8.0.so /lib && mv -v /usr/lib/libcrack-2.8.0.so /lib && ln -svf ../../lib/libcrack-2.8.0.so /usr/lib/libcrack.so
Install the dictionary:
install -v -m644 -D ../cracklib-words-20080507.gz /usr/share/dict/cracklib-words.gz gunzip -f /usr/share/dict/cracklib-words.gz ln -svf cracklib-words /usr/share/dict/words echo $(hostname) >>/usr/share/dict/cracklib-extra-words && install -v -m755 -d /lib/cracklib create-cracklib-dict /usr/share/dict/cracklib-words
Multilib
If desired, apply the Heimdal patch (note that with this patch the original library is not affected; this patch only creates an additional library used by the Heimdal password-checking routines):
patch -Np1 -i ../cracklib-2.8.22-heimdal-2.patch
32Bit
Configure and compile the package:
CC="gcc ${BUILD32}" USE_ARCH=32 ./configure --prefix=/usr -with-default-dict=/lib/cracklib/pw_dict && make
Install the package:
make install && mv -v /usr/lib/libcrack-2.8.0.so /lib && mv -v /usr/lib/libcrack-2.8.0.so /lib && ln -svf ../../lib/libcrack-2.8.0.so /usr/lib/libcrack.so
N32
Configure and compile the package:
CC="gcc ${BUILDN32}" USE_ARCH=n32 ./configure --prefix=/usr \ --libdir=/usr/lib32 -with-default-dict=/lib/cracklib/pw_dict && make
Install the package:
make install && mv -v /usr/lib32/libcrack-2.8.0.so /lib32 && mv -v /usr/lib32/libcrack-2.8.0.so /lib32 && ln -svf ../../lib32/libcrack-2.8.0.so /usr/lib32/libcrack.so
64Bit
Configure and compile the package:
CC="gcc ${BUILD64}" USE_ARCH=64 ./configure --prefix=/usr \ --libdir=/usr/lib64 -with-default-dict=/lib/cracklib/pw_dict && make
Install the package:
make install && mv -v /usr/lib64/libcrack-2.8.0.so /lib64 && mv -v /usr/lib64/libcrack-2.8.0.so /lib64 && ln -svf ../../lib64/libcrack-2.8.0.so /usr/lib64/libcrack.so
Install the dictionary:
install -v -m644 -D ../cracklib-words-20080507.gz /usr/share/dict/cracklib-words.gz gunzip -f /usr/share/dict/cracklib-words.gz ln -svf cracklib-words /usr/share/dict/words install -v -m755 -d /lib/cracklib create-cracklib-dict /usr/share/dict/cracklib-words
Contents
Installed Programs: | cracklib-check, cracklib-format, cracklib-packer, cracklib-unpacker, create-cracklib-dict |
---|---|
Installed Libraries: | libcrack.{so,a}, libcrack_heimdal.{so,a}, cracklibmodule.{so,a} Python Modules |
Installed Directories: | /lib/cracklib, /usr/share/dict, /usr/share/cracklib |
Short Descriptions
create-cracklib-dict | is used to create the CrackLib dictionary from the given word list(s). |
---|---|
libcrack.{so,a} | provides a fast dictionary lookup method for strong password enforcement. |