'\" t .\" Title: grid-mapfile-check-consistency .\" Author: [see the "AUTHOR" section] .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 03/31/2018 .\" Manual: Grid Community Toolkit Manual .\" Source: Grid Community Toolkit 6 .\" Language: English .\" .TH "GRID\-MAPFILE\-CHECK" "8" "03/31/2018" "Grid Community Toolkit 6" "Grid Community Toolkit Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" grid-mapfile-check-consistency \- Add an entry to a grid map file .SH "SYNOPSIS" .sp \fBgrid\-mapfile\-check\-consistency\fR [ \-h | \-help | \-usage | \-version | \-versions ] .sp \fBgrid\-mapfile\-check\-consistency\fR [ \-mapfile \fIMAPFILE\fR | \-f \fIMAPFILE\fR ] .SH "DESCRIPTION" .sp The \fBgrid\-mapfile\-check\-consistency\fR program performs basic checks for validity of a gridmap file\&. These checks include checks for existence, duplication of entries, and valid local user names\&. If the gridmap file is valid, \fBgrid\-mapfile\-check\-consistency\fR exits with a zero exit code, otherwise it exits with a non\-zero exit code\&. In either case, it displays information about its progress as it parses and validates the gridmap file\&. .sp By default, \fBgrid\-mapfile\-check\-consistency\fR will check the gridmap file named by the GRIDMAP environment variable if present\&. If that variable is not set, it will check the file $HOME/\&.gridmap for non\-root users if present\&. If that doesn\(cqt exist or \fBgrid\-mapfile\-check\-consistency\fR is run as root, it will then check /etc/grid\-security/grid\-mapfile\&. This can be changed by the use of the \fI\-mapfile\fR or \fI\-f\fR command\-line options\&. .sp The full set of command\-line options to \fBgrid\-mapfile\-check\-consistency\fR are: .PP \fB\-h, \-help, \-usage\fR .RS 4 Display the command\-line options to \fBgrid\-mapfile\-check\-consistency\fR\&. .RE .PP \fB\-version, \-versions\fR .RS 4 Display the version number of the \fBgrid\-mapfile\-check\-consistency\fR command\&. .RE .PP \fB\-mapfile \fR\fB\fIMAPFILE\fR\fR\fB, \-f \fR\fB\fIMAPFILE\fR\fR .RS 4 Check the gridmap file named by \fIMAPFILE\fR instead of the default\&. .RE .SH "EXAMPLES" .sp Check that the gridmap file in /etc/grid\-security is valid: .sp .if n \{\ .RS 4 .\} .nf % grid\-mapfile\-check\-consistency* \-f /etc/grid\-security/grid\-mapfile Checking /etc/grid\-security/grid\-mapfile Verifying grid mapfile existence\&.\&.\&.OK Checking for duplicate entries\&.\&.\&.OK Checking for valid user names\&.\&.\&.OK .fi .if n \{\ .RE .\} .sp Check a gridmap file that has an invalid local user name: .sp .if n \{\ .RS 4 .\} .nf grid\-mapfile\-check\-consistency \-f /etc/grid\-security/grid\-mapfile Checking /etc/grid\-security/grid\-mapfile Verifying grid mapfile existence\&.\&.\&.OK Checking for duplicate entries\&.\&.\&.OK ERROR: baduser is not a valid local username ERROR: Found 1 invalid username(s) .fi .if n \{\ .RE .\} .SH "ENVIRONMENT" .sp The following environment variables affect the execution of \fBgrid\-mapfile\-check\-consistency\fR: .PP \fBGRIDMAP\fR .RS 4 Path to the gridmap to check\&. .RE .SH "FILES" .sp The following files affect the execution of \fBgrid\-mapfile\-check\-consistency\fR: .PP \fB$HOME/\&.gridmap\fR .RS 4 Path to the default gridmap to check if the GRIDMAP environment variable is not set for non\-root users\&. .RE .PP \fB/etc/grid\-security/grid\-mapfile\fR .RS 4 Path to the default gridmap to check if GRIDMAP environment variable is not set and the above file does not exist\&. .RE .SH "SEE ALSO" .sp grid\-mapfile\-add\-entry(8), grid\-mapfile\-delete\-entry(8) .SH "AUTHOR" .sp Copyright \(co 1999\-2016 University of Chicago