GRID-MAPFILE-ADD-(8)
π GRID-MAPFILE-ADD-ENTRY β the grid-mapfile-add-entry page from the Grid Community Toolkit Manual, section 8 π
okay bestie, sit down, hydrate, and let me tell you about grid-mapfile-add-entry. it's a section 8 command, it lives in the Grid Community Toolkit Manual, and it is genuinely iconic for one specific job. no cap.
β¨ NAME β¨
grid-mapfile-add-entry β Add an entry to a gridmap file
πΈ SYNOPSIS πΈ
grid-mapfile-add-entry [ -h | -help | -usage | -version | -versions ]
grid-mapfile-add-entry -dn DISTINGUISHED-NAME -ln LOCAL-NAME... [-d |
-dryrun] [ -f MAPFILE | -mapfile MAPFILE ] [-force] [ -n ] [ -c ]
π DESCRIPTION π
so the whole point of grid-mapfile-add-entry is: it takes an X.509 distinguished name and a local POSIX user name and smooshes them together into a new mapping inside a gridmap file. gridmap files are the simple little authorization method used by services like GRAM5 or GridFTP. it's giving "who are you, and who do you get to be on this machine" π«Ά
before it does anything, grid-mapfile-add-entry checks two things: that the LOCAL-NAME is a valid user name on the system where you ran it, and that the mapping between DISTINGUISHED-NAME and LOCAL-NAME does not already exist in the gridmap file. no duplicate entries, we don't do that here π
by default, grid-mapfile-add-entry will modify the gridmap file named by the GRIDMAP environment variable if it's present β and if it's not, it goes for /etc/grid-security/grid-mapfile. wanna change that? use the -mapfile or -f command-line options. easy.
if the gridmap file doesn't exist yet, grid-mapfile-add-entry will create it. and if it does already exist, it will save the current contents of the file to a new file with the string .old appended to the file name. so like, a lil backup moment, she's thoughtful like that π
the full set of command-line options to grid-mapfile-add-entry are:
π OPTIONS π
-help,-usageβ Display the command-line options togrid-mapfile-add-entry.-version,-versionsβ Display the version number of thegrid-mapfile-add-entrycommand. The second form includes more details. (she's thorough π)-dn DISTINGUISHED-NAMEβ The X.509 distinguished name to add a mapping for. The name should be in OpenSSL's oneline format.-ln LOCAL-NAME...β The POSIX user name to map the distinguished name to. This name must be a valid username. Add multipleLOCAL-NAMEstrings after the-lncommand-line option. If any of the local names are invalid, no changes will be made to the gridmap file (but seeforceoption below). ok so like all-or-nothing, periodt.-d,-dryrunβ Verify local names and display diagnostics about what would be added to the gridmap file, but don't actually modify the file. it's the "look but don't touch" option, we love a rehearsal β¨-mapfile MAPFILE,-f MAPFILEβ Modify the gridmap file named byMAPFILEinstead of the default.-forceβ Make modifications even if user does not exist (needed for B2STAGE).-nβ Don't copy the original file toMAPFILE.old.-cβ Don't check for changes to the gridmap during program execution.
π EXAMPLES π
Example the first β add a mapping between the current user's certificate and the current user id, into a gridmap file in $HOME/.gridmap:
% grid-mapfile-add-entry -f $HOME/.gridmap -dn "`grid-cert-info -subject`" -ln "`id -un`"
Modifying /home/juser/.gridmap ...
/home/juser/.gridmap does not exist... Attempting to create /home/juser/.gridmap
New entry:
"/DC=org/DC=example/DC=grid/CN=Joe User" juser
(1) entry added
Example the second β add a mapping between a distinguished name and multiple local names:
% grid-mapfile-add-entry -dn "/DC=org/DC=example/DC=grid/CN=Joe User" juser" local1 local2
Modifying /home/juser/.gridmap ...
/home/juser/.gridmap does not exist... Attempting to create /home/juser/.gridmap
New entry:
"/DC=org/DC=example/DC=grid/CN=Joe User" local1,local2
(1) entry added
look at her go, adding entries, slaying π¦
π§ ENVIRONMENT π§
the following environment variables affect the execution of grid-mapfile-add-entry:
GRIDMAPβ Path to the default gridmap to modify
π FILES π
the following files affect the execution of grid-mapfile-add-entry:
/etc/grid-security/grid-mapfileβ Path to the default gridmap to modify ifGRIDMAPenvironment variable is not set.
β SEE ALSO β
grid-mapfile-check-consistency(8), grid-mapfile-delete-entry(8)
go read those too, bestie, they're the rest of the gridmap cinematic universe π¬
π AUTHOR π
Copyright Β© 1999-2016 University of Chicago
and that's the whole page, no crumbs left π this was the Grid Community Toolkit 6 version, dated 08/21/2020 β mwah, bye bestie, go add some entries π«Άβ¨
π¦ where this page comes from
- debian bookworm: globus-gss-assist-progs 12.7-2 Β· Apache-2.0
- debian trixie: globus-gss-assist-progs 12.7-3 Β· Apache-2.0
- epel 10: globus-gss-assist-progs 12.7-4.el10_0 Β· Apache-2.0
- epel 9: globus-gss-assist-progs 12.7-1.el9 Β· ASL 2.0
- fedora 43: globus-gss-assist-progs 12.7-9.fc43 Β· Apache-2.0
- fedora 44: globus-gss-assist-progs 12.7-10.fc44 Β· Apache-2.0
- ubuntu jammy: globus-gss-assist-progs 12.6-1 Β· Apache-2.0
- ubuntu noble: globus-gss-assist-progs 12.7-3build1 Β· Apache-2.0
- ubuntu questing: globus-gss-assist-progs 12.7-3build1
- ubuntu resolute: globus-gss-assist-progs 12.7-3build2 Β· Apache-2.0
- ubuntu stonking: globus-gss-assist-progs 12.7-4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms