cifs-utils: Create new binary cifs.idmap for sid to uid/gid mapping (try #4)
[cifs-utils.git] / cifs.upcall.8.in
1 '\" t
2 .\"     Title: cifs.upcall
3 .\"    Author: [see the "AUTHOR" section]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5 .\"      Date: 02/07/2010
6 .\"    Manual: System Administration tools
7 .\"    Source: cifs-utils 4.0
8 .\"  Language: English
9 .\"
10 .TH "CIFS\&.UPCALL" "8" "02/07/2010" "cifs-utils 4\&.0" "System Administration tools"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
15 .nh
16 .\" disable justification (adjust text to left margin only)
17 .ad l
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
21 .SH "NAME"
22 cifs.upcall \- Userspace upcall helper for Common Internet File System (CIFS)
23 .SH "SYNOPSIS"
24 .HP \w'\ 'u
25 cifs\&.upcall [\-\-trust\-dns|\-t] [\-\-version|\-v] [\-\-legacy\-uid|\-l] {keyid}
26 .SH "DESCRIPTION"
27 .PP
28 This tool is part of the cifs-utils suite\&.
29 .PP
30 cifs\&.upcall 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\&.
31 .PP
32 cifs\&.upcall 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\'s not generally intended to be run that way\&.
34 .SH "OPTIONS"
35 .PP
36 \-c
37 .RS 4
38 This option is deprecated and is currently ignored\&.
39 .RE
40 .PP
41 \-\-trust\-dns|\-t
42 .RS 4
43 With krb5 upcalls, the name used as the host portion of the service principal defaults to the hostname portion of the UNC\&. This option allows the upcall program to reverse resolve the network address of the server in order to get the hostname\&.
44 .sp
45 This is less secure than not trusting DNS\&. When using this option, it\'s possible that an attacker could get control of DNS and trick the client into mounting a different server altogether\&. It\'s preferable to instead add server principals to the KDC for every possible hostname, but this option exists for cases where that isn\'t possible\&. The default is to not trust reverse hostname lookups in this fashion\&.
46 .RE
47 .PP
48 \-\-legacy\-uid|\-l
49 .RS 4
50 Traditionally, the kernel has sent only a single uid= parameter to the upcall for the SPNEGO upcall that\'s used to determine what user's credential cache to use. This parameter is affected by the uid= mount option, which also governs the ownership of files on the mount\&.
51 .sp
52 Newer kernels send a creduid= option as well, which contains what uid it thinks actually owns the credentials that it\'s looking for\&. At mount time, this is generally set to the real uid of the user doing the mount. For multisession mounts, it's set to the fsuid of the mount user. Set this option if you want cifs.upcall to use the older uid= parameter instead of the creduid= parameter\&.
53 .RE
54 .PP
55 \-\-version|\-v
56 .RS 4
57 Print version number and exit\&.
58 .RE
59 .SH "CONFIGURATION FOR KEYCTL"
60 .PP
61 cifs\&.upcall 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\&. The current cifs\&.upcall program handles two different key types:
62 .PP
63 cifs\&.spnego
64 .RS 4
65 This keytype is for retrieving kerberos session keys
66 .RE
67 .PP
68 dns_resolver
69 .RS 4
70 This key type is for resolving hostnames into IP addresses
71 .RE
72 .PP
73 To make this program useful for CIFS, you\'ll need to set up entries for them in request\-key\&.conf(5)\&. Here\'s an example of an entry for each key type:
74 .sp
75 .if n \{\
76 .RS 4
77 .\}
78 .nf
79 #OPERATION  TYPE           D C PROGRAM ARG1 ARG2\&.\&.\&.
80 #=========  =============  = = ================================
81 create      cifs\&.spnego    * * @sbindir@/cifs\&.upcall %k
82 create      dns_resolver   * * @sbindir@/cifs\&.upcall %k
83 .fi
84 .if n \{\
85 .RE
86 .\}
87 .PP
88 See
89 \fBrequest-key.conf5\fR()
90 for more info on each field\&.
91 .SH "SEE ALSO"
92 .PP
93
94 \fBrequest-key.conf\fR(5),
95 \fBmount.cifs\fR(8)
96 .SH "AUTHOR"
97 .PP
98 Igor Mammedov wrote the cifs\&.upcall program\&.
99 .PP
100 Jeff Layton authored this manpage\&.
101 .PP
102 The maintainer of the Linux CIFS VFS is Steve French\&.
103 .PP
104 The
105 Linux CIFS Mailing list
106 is the preferred place to ask questions regarding these programs\&.