1CIFSCREDS(1)                                                      CIFSCREDS(1)
2
3
4

NAME

6       cifscreds - manage NTLM credentials in kernel keyring
7

SYNOPSIS

9          cifscreds add|clear|clearall|update [-u username] [-d] host|domain
10

DESCRIPTION

12       The cifscreds  program is a tool for managing credentials (username and
13       password) for the purpose of establishing sessions in multiuser mounts.
14
15       When a cifs filesystem is mounted with the "multiuser" option, and does
16       not use krb5 authentication, it needs to be able to get the credentials
17       for each user from somewhere. The cifscreds program is the tool used to
18       provide these credentials to the kernel.
19
20       The  first  non-option  argument  to  cifscreds  is  a command (see the
21       COMMANDS  section below). The second non-option argument is a  hostname
22       or address, or an NT domain name.
23

COMMANDS

25       add    Add  credentials  to the kernel to be used for connecting to the
26              given server, or servers in the given domain.
27
28       clear  Clear credentials for a particular host or domain from the  ker‐
29              nel.
30
31       clearall
32              Clear all cifs credentials from the kernel.
33
34       update Update  stored credentials in the kernel with a new username and
35              password.
36

OPTIONS

38       -d, --domain
39              The provided host/domain argument is a NT domainname.
40
41              Ordinarily the second argument provided to cifscreds is  treated
42              as  a  hostname  or IP address. This option causes the cifscreds
43              program to treat that argument as an NT domainname instead.
44
45              If there are not  host  specific  credentials  for  the  mounted
46              server,  then the kernel will next look for a set of domain cre‐
47              dentials equivalent to the  domain=  option  provided  at  mount
48              time.
49
50       -u, --username
51              Ordinarily,  the  username  is derived from the unix username of
52              the user adding the credentials. This option allows the user  to
53              substitute a different username.
54

NOTES

56       The  cifscreds utility requires a kernel built with support for the lo‐
57       gin key type. That key type was added in v3.3 in  mainline  Linux  ker‐
58       nels.
59
60       Since  cifscreds  adds keys to the session keyring, it is highly recom‐
61       mended that one use pam_keyinit to ensure that a session keyring is es‐
62       tablished at login time.
63

SEE ALSO

65       pam_keyinit(8)
66

AUTHORS

68       The  cifscreds  program  was  originally developed by Igor Druzhinin <‐
69       jaxbrigs@gmail.com>. This manpage and a redesign of the code  was  done
70       by Jeff Layton <jlayton@samba.org>.
71
72
73
74
75                                                                  CIFSCREDS(1)
Impressum