User Commands history_admin(1)
NAME
history_admin - administer password history database
SYNOPSIS
/history_admin [ -a age ] [ -c file ] [ -d
depth ] [ -f file ] [ -i file ] [ -l ] [ -m format ] [ -X
option ] [ -v ] function
DESCRIPTION
The history_admin utility maintains the password history
database used by npasswd, to control password reuse.
The form of history database entries is:
name:passwd,time-stamp:. . .:passwd,time-stamp:
name Is the user name.
passwd,time-stamp
The encrypted password and the time the password
was entered into the database. There can be mul-
tiple such items in a history entry.
This utility should be run as root, or by the user who
owns the history database. Creation of a new database
may require root privileges.
OPTIONS
-a time
Set the password history age limit to age days. A set-
ting of 0 disables the age limit.
-c file
Use configuration file file instead of npasswd-
lib/passwd.conf.
-d depth
Set the old password retention limit to depth. A set-
ting of 0 disables the depth limit.
-f file
Path to the history database. If file is '@' then the
default database path is used.
-i file
Input data. Standard input is read if no input file is
given.
-l Log errors with syslog(3).
-m format
Select database format.
SunOS 5.6 Last change: 1
User Commands history_admin(1)
file History is stored in a text file.
dbm History is stored in a DBM database. This is the
default if the NDBM library is available.
-X option
Set special options:
Dn Set internal debug level to n. See the "Command
line options" section in the Npasswd Reference
Manual for the available debugging levels.
h Print help text.
V Print version information.
-v Verbose.
function
Select maintenance function.
dump Dumps the database to standard output.
load Reads history records (of the form described
above) from the input and populates the database.
merge
Reads history records (of the form described
above) from the input and merges them into the
database.
purge
Cleans the database of old and excess passwords:
o Removes entries for users who are not in the
password file.
o Removes passwords which are too old. This
limit is set in the npasswd configuration
file, but can be overridden by the -a option.
o Removes excess passwords. There is a limit
to how many passwords are kept for each user.
The limit is set in the npasswd configuration
file, but can be overridden by the -d option.
History_admin exits with 0 status if successful, and 1 for
failure.
EXAMPLES
Running a periodic database clean from cron:
history_admin -l purge 2> purge-errors
SunOS 5.6 Last change: 2
User Commands history_admin(1)
Creating the default database:
history_admin load < /dev/null
Populating alternate DBM database from a file:
history_admin -m dbm -f /tmp/new-history -i test-data load
Removing a user from the default database:
history_admin dump | grep -v "^username:" | history_admin load
DIAGNOSTICS
Config file error 'filename' line n; message
An error was encountered in the configuration file.
Database error file 'filename' method 'what' error 'message'
A bad database path or method was specified on the com-
mand line.
No history database
The history mechanism has been disabled in the confi-
guration file or the history database is missing.
Unknown function 'what'
An unknown function was given.
No memory for . . .
Temporary memory allocation failed.
Cannot make temp file 'filename', error errno
Failure to create database temporary file.
Cannot make DBM 'filename'
Failure to create DBM database.
History purge errors - new database left in 'filename'
An error was encountered in purging the history. The
database was left unchanged.
History load/merge errors - new database left in 'filename'
A serious error was encountered doing a database create
or merge.
DBM delete|replace|insert for user failed
The deletion, replacment or insertion of a DBM entry
failed.
Replace DBM 'file' failed
A serious error was encountered loading a DBM dataah-
base.
FILES
- the default history database
SunOS 5.6 Last change: 3
User Commands history_admin(1)
BUGS
Undoubtedly there are more bugs than have already been noted
(and fixed).
SEE ALSO
npasswd(1), checkpassword(3)
Npasswd Reference Manual
AUTHOR
Clyde Hoover
Academic Computing Services and Instructional Technology
Services
The University of Texas at Austin
c.hoover@cc.utexas.edu
8c9 1998, The University of Texas at Austin. All rights
reserved.
SunOS 5.6 Last change: 4