2007-10-07 17:16:07 +05:30
|
|
|
.\"$Id: grpck.8,v 1.17 2005/04/12 17:53:21 kloczek Exp $
|
2007-10-07 17:14:44 +05:30
|
|
|
.\" Copyright 1992 - 1993, Julianne Frances Haugh
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
2007-10-07 17:15:40 +05:30
|
|
|
.TH GRPCK 8
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH NAME
|
|
|
|
grpck \- verify integrity of group files
|
|
|
|
.SH SYNOPSIS
|
2007-10-07 17:16:07 +05:30
|
|
|
\fBgrpck\fR [\fB\-r\fR] [\fIgroup\fR \fIshadow\fR]
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH DESCRIPTION
|
|
|
|
\fBgrpck\fR verifies the integrity of the system authentication information.
|
|
|
|
All entries in the \fI/etc/group\fR and \fI/etc/gshadow\fR are checked to
|
2007-10-07 17:15:23 +05:30
|
|
|
see that the entry has the proper format and valid data in each field. The
|
|
|
|
user is prompted to delete entries that are improperly formatted or which
|
|
|
|
have other incorrectable errors.
|
|
|
|
.PP
|
|
|
|
Checks are made to verify that each entry has:
|
2007-10-07 17:14:44 +05:30
|
|
|
.sp
|
|
|
|
.in +.5i
|
2007-10-07 17:16:07 +05:30
|
|
|
\- the correct number of fields
|
2007-10-07 17:14:44 +05:30
|
|
|
.br
|
2007-10-07 17:16:07 +05:30
|
|
|
\- a unique group name
|
2007-10-07 17:14:44 +05:30
|
|
|
.br
|
2007-10-07 17:16:07 +05:30
|
|
|
\- a valid list of members and administrators
|
|
|
|
.in \-.5i
|
2007-10-07 17:14:44 +05:30
|
|
|
.sp
|
2007-10-07 17:15:23 +05:30
|
|
|
.PP
|
|
|
|
The checks for correct number of fields and unique group name are fatal. If
|
|
|
|
the entry has the wrong number of fields, the user will be prompted to
|
|
|
|
delete the entire line. If the user does not answer affirmatively, all
|
|
|
|
further checks are bypassed. An entry with a duplicated group name is
|
|
|
|
prompted for deletion, but the remaining checks will still be made. All
|
|
|
|
other errors are warnings and the user is encouraged to run the
|
2007-10-07 17:14:44 +05:30
|
|
|
\fBgroupmod\fR command to correct the error.
|
2007-10-07 17:15:23 +05:30
|
|
|
.PP
|
2007-10-07 17:14:44 +05:30
|
|
|
The commands which operate on the \fI/etc/group\fR file are not able to
|
2007-10-07 17:15:23 +05:30
|
|
|
alter corrupted or duplicated entries. \fBgrpck\fR should be used in those
|
|
|
|
circumstances to remove the offending entry.
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH OPTIONS
|
|
|
|
By default, \fBgrpck\fR operates on the files \fI/etc/group\fR and
|
2007-10-07 17:15:23 +05:30
|
|
|
\fI/etc/gshadow\fR. The user may select alternate files with the \fIgroup\fR
|
|
|
|
and \fIshadow\fR parameters. Additionally, the user may execute the command
|
2007-10-07 17:16:07 +05:30
|
|
|
in read\-only mode by specifying the \fB\-r\fR flag. This causes all questions
|
2007-10-07 17:15:23 +05:30
|
|
|
regarding changes to be answered \fBno\fR without user intervention.
|
2007-10-07 17:14:51 +05:30
|
|
|
\fBgrpck\fR can also sort entries in \fI/etc/group\fR and \fI/etc/gshadow\fR
|
2007-10-07 17:16:07 +05:30
|
|
|
by GID. To run it in sort mode pass it \fB\-s\fR flag. No checks are
|
2007-10-07 17:14:51 +05:30
|
|
|
performed then, it just sorts.
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH FILES
|
2007-10-07 17:16:07 +05:30
|
|
|
\fI/etc/group\fR \- group account information
|
2007-10-07 17:14:44 +05:30
|
|
|
.br
|
2007-10-07 17:16:07 +05:30
|
|
|
\fI/etc/gshadow\fR \- encrypted passwords and group administrator information
|
2007-10-07 17:14:44 +05:30
|
|
|
.br
|
2007-10-07 17:16:07 +05:30
|
|
|
\fI/etc/passwd\fR \- user account information
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH SEE ALSO
|
|
|
|
.BR group (5),
|
|
|
|
.BR passwd (5),
|
2007-10-07 17:15:14 +05:30
|
|
|
.BR shadow (5),
|
|
|
|
.BR groupmod (8)
|
2007-10-07 17:15:23 +05:30
|
|
|
.SH EXIT VALUES
|
|
|
|
.TP 2
|
2007-10-07 17:14:44 +05:30
|
|
|
The \fBgrpck\fR command exits with the following values:
|
2007-10-07 17:15:23 +05:30
|
|
|
.br
|
|
|
|
\fB0\fR \- success
|
|
|
|
.br
|
|
|
|
\fB1\fR \- syntax Error
|
|
|
|
.br
|
|
|
|
\fB2\fR \- one or more bad group entries
|
|
|
|
.br
|
|
|
|
\fB3\fR \- can't open group files
|
|
|
|
.br
|
|
|
|
\fB4\fR \- can't lock group files
|
|
|
|
.br
|
|
|
|
\fB5\fR \- can't update group files
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH AUTHOR
|
|
|
|
Julianne Frances Haugh (jockgrrl@ix.netcom.com)
|