Blame cifs.idmap.rst.in

Packit Service 09cdfc
==========
Packit Service 09cdfc
cifs.idmap
Packit Service 09cdfc
==========
Packit Service 09cdfc
Packit Service 09cdfc
-----------------------------------------------------------------------
Packit Service 09cdfc
Userspace helper for mapping ids for Common Internet File System (CIFS)
Packit Service 09cdfc
-----------------------------------------------------------------------
Packit Service 09cdfc
:Manual section: 8
Packit Service 09cdfc
Packit Service 09cdfc
********
Packit Service 09cdfc
SYNOPSIS
Packit Service 09cdfc
********
Packit Service 09cdfc
Packit Service 664a73
  cifs.idmap [--help|-h] [--timeout|-t] [--version|-v] {keyid}
Packit Service 09cdfc
Packit Service 09cdfc
***********
Packit Service 09cdfc
DESCRIPTION
Packit Service 09cdfc
***********
Packit Service 09cdfc
Packit Service 09cdfc
This tool is part of the cifs-utils suite.
Packit Service 09cdfc
Packit Service 664a73
``cifs.idmap``  is a userspace helper program for the linux CIFS client
Packit Service 09cdfc
filesystem. There are a number of activities that the kernel cannot
Packit Service 09cdfc
easily do itself. This program is a callout program that does these
Packit Service 09cdfc
things for the kernel and then returns the result.
Packit Service 09cdfc
Packit Service 664a73
``cifs.idmap``  is generally intended to be run when the kernel calls
Packit Service 09cdfc
request-key(8) for a particular key type. While it can be run
Packit Service 09cdfc
directly from the command-line, it is not generally intended to be run
Packit Service 09cdfc
that way.
Packit Service 09cdfc
Packit Service 664a73
This program is only called if a share is mounted with the ``cifsacl``
Packit Service 09cdfc
mount option. The kernel will only upcall to do this conversion if
Packit Service 09cdfc
that mount option is specified.
Packit Service 09cdfc
Packit Service 664a73
``cifs.idmap``  relies on a plugin to handle the ID mapping. If it can't
Packit Service 09cdfc
find the plugin then it will not work properly. The plugin (or a
Packit Service 09cdfc
symlink to it) must be at @pluginpath@.
Packit Service 09cdfc
Packit Service 664a73
In the case where ``cifs.idmap`` or the plugin are unavailable, file
Packit Service 09cdfc
objects in a mounted share are assigned uid and gid of the credentials
Packit Service 09cdfc
of the process that mounted the share. It is strongly recomemended to
Packit Service 09cdfc
use mount options of uid and gid to specify a default uid and gid to
Packit Service 09cdfc
map owner SIDs and group SIDs in this situation.
Packit Service 09cdfc
Packit Service 09cdfc
*******
Packit Service 09cdfc
OPTIONS
Packit Service 09cdfc
*******
Packit Service 09cdfc
Packit Service 664a73
--help|-h
Packit Service 664a73
  Print the usage message and exit.
Packit Service 09cdfc
Packit Service 664a73
--timeout|-t
Packit Service 664a73
  Set the expiration timer, in seconds on the key. The default is 600
Packit Service 664a73
  seconds (10 minutes). Setting this to 0 will cause the key to never
Packit Service 664a73
  expire.
Packit Service 09cdfc
Packit Service 664a73
--version|-v
Packit Service 664a73
  Print version number and exit.
Packit Service 09cdfc
Packit Service 09cdfc
************************
Packit Service 09cdfc
CONFIGURATION FOR KEYCTL
Packit Service 09cdfc
************************
Packit Service 09cdfc
Packit Service 664a73
``cifs.idmap``  is designed to be called from the kernel via the
Packit Service 09cdfc
request-key callout program. This requires that request-key be told
Packit Service 664a73
where and how to call this program.  Currently ``cifs.idmap``  handles a
Packit Service 664a73
key type of::
Packit Service 09cdfc
Packit Service 664a73
  cifs.idmap
Packit Service 09cdfc
Packit Service 664a73
This keytype is for mapping a SID to either an uid or a gid.
Packit Service 09cdfc
Packit Service 09cdfc
To make this program useful for CIFS, you will need to set up entry for it in
Packit Service 664a73
request-key.conf(5). Here is an example of an entry for this key type::
Packit Service 09cdfc
Packit Service 09cdfc
     #OPERATION  TYPE           D C PROGRAM ARG1 ARG2...
Packit Service 09cdfc
     #=========  =============  = = ================================
Packit Service 09cdfc
     create      cifs.idmap     * * @sbindir@/cifs.idmap %k
Packit Service 09cdfc
Packit Service 09cdfc
See request-key.conf(5) for more info on each field.
Packit Service 09cdfc
Packit Service 09cdfc
*****
Packit Service 09cdfc
NOTES
Packit Service 09cdfc
*****
Packit Service 09cdfc
Packit Service 09cdfc
Support for upcalls to cifs.idmap was initially introduced in the 3.0
Packit Service 09cdfc
kernel.
Packit Service 09cdfc
Packit Service 09cdfc
********
Packit Service 09cdfc
SEE ALSO
Packit Service 09cdfc
********
Packit Service 09cdfc
Packit Service 09cdfc
request-key.conf(5), mount.cifs(8)
Packit Service 09cdfc
Packit Service 09cdfc
******
Packit Service 09cdfc
AUTHOR
Packit Service 09cdfc
******
Packit Service 09cdfc
Packit Service 09cdfc
Shirish Pargaonkar wrote the cifs.idmap program.
Packit Service 09cdfc
Packit Service 09cdfc
The Linux CIFS Mailing list is the preferred place to ask questions
Packit Service 09cdfc
regarding these programs.