2003-10-20 14:10:19 -07:00
|
|
|
.\" $OpenBSD: skeyprune.8,v 1.10 2003/10/20 21:10:19 jmc Exp $
|
1996-09-27 17:00:40 -07:00
|
|
|
.\"
|
2003-06-10 11:25:33 -07:00
|
|
|
.\" Copyright (c) 1996, 2001, 2002 Todd C. Miller <Todd.Miller@courtesan.com>
|
|
|
|
.\"
|
|
|
|
.\" Permission to use, copy, modify, and distribute this software for any
|
|
|
|
.\" purpose with or without fee is hereby granted, provided that the above
|
|
|
|
.\" copyright notice and this permission notice appear in all copies.
|
|
|
|
.\"
|
|
|
|
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
1996-09-27 17:00:40 -07:00
|
|
|
.\"
|
2002-05-16 11:27:34 -07:00
|
|
|
.Dd May 16, 2002
|
1996-09-27 17:00:40 -07:00
|
|
|
.Dt SKEYPRUNE 8
|
1997-09-21 22:15:05 -07:00
|
|
|
.Os
|
1996-09-27 17:00:40 -07:00
|
|
|
.Sh NAME
|
|
|
|
.Nm skeyprune
|
2003-10-20 14:10:19 -07:00
|
|
|
.Nd prune zeroed and old entries from S/Key database
|
1996-09-27 17:00:40 -07:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm skeyprune
|
|
|
|
.Op Ar days
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm skeyprune
|
2001-06-20 15:19:58 -07:00
|
|
|
searches through the S/Key database,
|
2002-05-16 11:27:34 -07:00
|
|
|
.Pa /etc/skey ,
|
|
|
|
and prunes out entries that have been zeroed out via
|
|
|
|
.Xr skeyinit 1
|
1996-09-27 17:00:40 -07:00
|
|
|
as well as entries that have not been modified in
|
|
|
|
.Ar days
|
2000-03-23 13:10:09 -08:00
|
|
|
days.
|
|
|
|
If
|
1996-09-27 17:00:40 -07:00
|
|
|
.Ar days
|
2001-06-20 15:19:58 -07:00
|
|
|
is not specified, only invalid entries are pruned.
|
2002-05-16 11:27:34 -07:00
|
|
|
.Pp
|
|
|
|
If a malformed entry is encountered, or if the file mode/type is incorrect,
|
|
|
|
an error is printed to the standard error.
|
2003-06-10 02:12:09 -07:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /etc/skey
|
|
|
|
.It Pa /etc/skey
|
|
|
|
directory containing S/Key user entries
|
|
|
|
.El
|
2002-05-16 11:27:34 -07:00
|
|
|
.Sh ERRORS
|
|
|
|
The following errors are cause for concern.
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Can't cd to /etc/skey
|
|
|
|
The S/Key database directory,
|
|
|
|
.Pa /etc/skey ,
|
|
|
|
does not exist.
|
|
|
|
The superuser may create it by running
|
|
|
|
.Dq skeyinit -E .
|
|
|
|
.It Can't open user
|
|
|
|
The user's entry was found in
|
|
|
|
.Pa /etc/skey
|
|
|
|
but it could not be opened.
|
|
|
|
.It user is not a regular file
|
|
|
|
The user's entry is not a regular file.
|
|
|
|
.It Bad mode for user
|
|
|
|
The user's entry had a bad file mode (should be 0600).
|
|
|
|
.It Bad link count for user.
|
|
|
|
The user's entry had a bad link count (should be 1).
|
|
|
|
.It Invalid entry for user
|
|
|
|
The user's entry was not of the correct format, as specified by
|
|
|
|
.Xr skey 5 .
|
|
|
|
.El
|
1996-09-27 17:00:40 -07:00
|
|
|
.Sh SEE ALSO
|
1998-09-27 09:57:47 -07:00
|
|
|
.Xr skey 1 ,
|
2002-05-16 11:27:34 -07:00
|
|
|
.Xr skeyinit 1 ,
|
|
|
|
.Xr skey 5
|