table of contents
- bookworm 12.7-2
- testing 12.7-2
- unstable 12.7-2.1
- experimental 12.7-2.1~exp1
GRID-MAPFILE-DELET(8) | Grid Community Toolkit Manual | GRID-MAPFILE-DELET(8) |
NAME¶
grid-mapfile-delete-entry - Remove entries from a gridmap file
SYNOPSIS¶
grid-mapfile-delete-entry [ -help | -usage | -version | -versions ]
grid-mapfile-delete-entry -dn DISTINGUISHED-NAME -ln LOCAL-NAME... [ -d | -dryrun ] [ -mapfile MAPFILE | -f MAPFILE ]
DESCRIPTION¶
The grid-mapfile-delete-entry program deletes mappings from a gridmap file. If both the -dn and -ln options are specified, grid-mapfile-delete-entry removes entries which meet both criteria (remove entries mapping DISTINGUISHED-NAME to LOCAL-NAME for each LOCAL-NAME specified). If only -dn or -ln is specified all entries for the specified DISTINGUISHED-NAME or LOCAL-NAME are removed.
By default, grid-mapfile-delete-entry will modify the gridmap file named by the GRIDMAP environment variable if present, or the file /etc/grid-security/grid-mapfile if not. This can be changed by the use of the -mapfile or '-f command-line options.
Prior to modifying a gridmap file, grid-mapfile-delete-entry saves its current contents to a file with the string .old appended to the original file name.
The full set of command-line options to grid-mapfile-delete-entry are:
-help, -usage
-version, -versions
-dn DISTINGUISHED-NAME
-ln LOCAL-NAME...
-d, -dryrun
-mapfile MAPFILE, -f MAPFILE
EXAMPLES¶
Remove all mappings for a distinguished name:
% grid-mapfile-delete-entry "/DC=org/DC=example/DC=grid/CN=Joe User" Modifying /etc/grid-security/grid-mapfile ... Deleting entry: "/DC=org/DC=example/DC=grid/CN=Joe User" juser,juser2 (1) entry deleted
Remove the mapping between a distinguished name and a single local username:
% grid-mapfile-delete-entry "/DC=org/DC=example/DC=grid/CN=Joe User" -ln juser2 Modifying /etc/grid-security/grid-mapfile ... Current entry: "/DC=org/DC=example/DC=grid/CN=Joe User" juser (1) mapping removed: (juser2), (0) not present and ignored (0) entries deleted
ENVIRONMENT¶
The following environment variables affect the execution of grid-mapfile-delete-entry:
GRIDMAP
FILES¶
The following files affect the execution of grid-mapfile-delete-entry:
/etc/grid-security/grid-mapfile
SEE ALSO¶
grid-mapfile-add-entry(8), grid-mapfile-check-consistency(8)
AUTHOR¶
Copyright © 1999-2016 University of Chicago
03/31/2018 | Grid Community Toolkit 6 |