File: crack_teststr.8

package info (click to toggle)
cracklib2 2.7-16
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 324 kB
  • ctags: 114
  • sloc: ansic: 1,931; makefile: 124; sh: 48; perl: 46
file content (80 lines) | stat: -rw-r--r-- 2,534 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
.\" source:
.\"   /var/cvs/projects/debian/cracklib/debian/dpkg.src/cracklib-runtime.crack_teststr.8.in,v
.\"
.\" revision:
.\"   @(#) cracklib-runtime.crack_teststr.8.in,v 1.6 1999/03/29 15:30:21 jplejacq Exp
.\"
.\" copyright:
.\"   Copyright (C) 1998, 1999 Jean Pierre LeJacq <jplejacq@quoininc.com>
.\"
.\"   Distributed under the GNU GENERAL PUBLIC LICENSE.
.\"
.TH crack_teststr 8 "Wed, 3 Oct 2001 01:37:09 +0100" "2.7-8.5" "Debian GNU/Linux manual"
.SH NAME
crack_testlib, crack_testnum, crack_teststr \- cracklib test utilities
.SH SYNOPSIS
.B crack_testlib

.B crack_testnum

.B crack_teststr
.SH DESCRIPTION
.B crack_testlib
tests if the input string will be accepted as a valid password by the
installed cracklib dictionary using the
.BR FascistCheck (3)
subroutine.
.B crack_testnum
tests if the input integer is an index to a word in the installed
cracklib dictionary and returns the word if found.
.B crack_teststr
tests if the input string is in the installed cracklib dictionary and 
returns its index number if found.

The database is in a binary format generated by the utilities
.BR crack_mkdict (8)
and
.BR crack_packer (8).
On a Debian system the database is located in the directory
/var/cache/cracklib/cracklib_dict and is generated daily with the program
.B update-cracklib
(8), which is called from the cron job
.B /etc/cron.daily/cracklib
\. The location is also defined in the header file
.B crack.h
using the constant
.B CRACKLIB_DICTPATH
though none of the subroutines in the cracklib libraries have this
location hardcoded into their implementations.

Each take one string or number per line.  Enter ^C when done.
.SH FILES
.TP
.I /var/cache/cracklib/cracklib_dict.[hwm|pwd|pwi]
cracklib dictionary database files used by utilities.
.TP
.I /etc/cron.daily/cracklib
cracklib daily cron program to rebuild the cracklib dictionary database.
.TP
.I /etc/cracklib/cracklib.conf
cracklib configuration file used by the cracklib daily cron program to
rebuild the cracklib dictionary database.
.TP
.I /usr/include/crack.h
cracklib header file defining the subroutine
.BR FascistCheck (3)
and the constant
.B CRACKLIB_DICTPATH
used to compile in the location of the cracklib dictionary database for
these utilties.
.SH SEE ALSO
.BR crack_mkdict (8),
.BR FascistCheck (3)
.br
/usr/share/doc/cracklib2/cracklib2.html
.br
/usr/share/doc/cracklib-runtime/cracklib-runtime.html
.SH AUTHOR
.B cracklib2
is written by Alec Muffett <alecm@crypto.dircon.co.uk>. Manual added
by Jean Pierre LeJacq <jplejacq@quoininc.com>.