3 .\" Author: [see the "AUTHOR" section]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6 .\" Manual: System Administration tools
7 .\" Source: cifs-utils 4.0
10 .TH "CIFS\&.IDMAP" "8" "05/26/2011" "cifs-utils" "System Administration tools"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 cifs.idmap \- Userspace helper for mapping ids for Common Internet File System (CIFS)
25 cifs\&.idmap [\-\-version|\-v] {keyid}
28 This tool is part of the cifs-utils suite\&.
30 cifs\&.idmap is a userspace helper program for the linux CIFS client filesystem\&. There are a number of activities that the kernel cannot easily do itself\&. This program is a callout program that does these things for the kernel and then returns the result\&.
32 cifs\&.idmap is generally intended to be run when the kernel calls request\-key(8)
33 for a particular key type\&. While it can be run directly from the command\-line, it is not generally intended to be run that way\&.
35 cifs\&.idmap works in conjuction with winbind facility of Samba suite to map owner and group SIDs to uids and gids respectively\&. It is best utilized when
37 \t\- a mount option of cifsacl is specified when mounting a cifs share
39 \t\- winbind is specified as one of the search entries for passwd and group databases in file /etc/nsswitch\&.conf
41 \t\- file smb.conf has winbind specific entries
43 \t\- winbind daemon program is running
46 In case winbind and cifs.idmap facilities are unavailable, file objects in a mounted share are assigned uid and gid of the credentials of the process that mounted the share\&. So it is strongly recomemended to use mount options of uid and gid to specify a default uid and gid to map owner SIDs and group SIDs respectively in case services of winbind and cifs.idmap facility are unavailable\&.
51 Print version number and exit\&.
53 .SH "CONFIGURATION FOR KEYCTL"
55 cifs\&.idmap is designed to be called from the kernel via the request\-key callout program\&. This requires that request\-key be told where and how to call this program\&. Currently cifs\&.idmap handles a key type of:
59 This keytype is for mapping a SID to either an uid or a gid
62 To make this program useful for CIFS, you will need to set up entry for it in request\-key\&.conf(5)\&. Here is an example of an entry for this key type:
68 #OPERATION TYPE D C PROGRAM ARG1 ARG2\&.\&.\&.
69 #========= ============= = = ================================
70 create cifs\&.idmap * * @sbindir@/cifs\&.idmap %k
77 \fBrequest-key.conf\fR(5)
78 for more info on each field\&.
81 Support for upcalls to cifs.idmap was initially introduced in the 3.0 kernel.
85 \fBrequest-key.conf\fR(5),
89 Shirish Pargaonkar wrote the cifs\&.idmap program\&.
92 Linux CIFS Mailing list
93 is the preferred place to ask questions regarding these programs\&.