2 .\"@(#)nfsidmap(8) - The NFS idmapper upcall program
4 .\" Copyright (C) 2010 Bryan Schumaker <bjschuma@netapp.com>
5 .TH nfsidmap 5 "1 October 2010"
7 nfsidmap \- The NFS idmapper upcall program
9 .B "nfsidmap [-v] [-t timeout] key desc"
11 .B "nfsidmap [-v] [-c]"
13 .B "nfsidmap [-v] [-u|-g|-r user]"
17 is used by the NFS idmapper to translate user and group ids into names, and to
18 translate user and group names into ids. Idmapper uses request-key to perform
19 the upcall and cache the result.
21 is called by /sbin/request-key, and will perform the translation and
22 initialize a key with the resulting information.
25 can also used to clear the keyring of all the keys or
26 revoke one particular key.
27 This is useful when the id mappings have failed to due
28 to a lookup error resulting in all the cached uids/gids to be set
29 to the user id nobody.
33 Clear the keyring of all the keys.
36 Revoke the gid key of the given user.
39 Revoke both the uid and gid key of the given user.
42 Set the expiration timer, in seconds, on the key.
43 The default is 600 seconds (10 mins).
46 Revoke the uid key of the given user.
49 Increases the verbosity of the output to syslog
50 (can be specified multiple times).
53 .I /etc/request-key.conf
54 will need to be modified so
56 can properly direct the upcall. The following line should be added before a call
59 create id_resolver * * /usr/sbin/nfsidmap -t 600 %k %d
61 This will direct all id_resolver requests to the program
62 .I /usr/sbin/nfsidmap.
65 defines how many seconds into the future the key will
66 expire. This is an optional parameter for
68 and will default to 600 seconds when not specified.
70 The idmapper system uses four key descriptions:
72 uid: Find the UID for the given user
74 gid: Find the GID for the given group
76 user: Find the user name for the given UID
78 group: Find the group name for the given GID
80 You can choose to handle any of these individually, rather than using the
81 generic upcall program. If you would like to use your own program for a uid
82 lookup then you would edit your request-key.conf so it looks similar to this:
84 create id_resolver uid:* * /some/other/program %k %d
86 create id_resolver * * /usr/sbin/nfsidmap %k %d
88 Notice that the new line was added above the line for the generic program.
89 request-key will find the first matching line and run the corresponding program.
90 In this case, /some/other/program will handle all uid lookups, and
91 /usr/sbin/nfsidmap will handle gid, user, and group lookups.
93 Bryan Schumaker, <bjschuma@netapp.com>