blob: 5c2a19572fafedd0055a2e03ba0fc57eccb03d50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
=========
cifscreds
=========
-----------------------------------------
manage NTLM credentials in kernel keyring
-----------------------------------------
:Manual section: 1
********
SYNOPSIS
********
cifscreds add|clear|clearall|update [-u username] [-d] host|domain
***********
DESCRIPTION
***********
The \ **cifscreds**\ program is a tool for managing credentials (username
and password) for the purpose of establishing sessions in multiuser
mounts.
When a cifs filesystem is mounted with the "multiuser" option, and does
not use krb5 authentication, it needs to be able to get the credentials
for each user from somewhere. The \ **cifscreds**\ program is the tool used
to provide these credentials to the kernel.
The first non-option argument to cifscreds is a command (see the
\ **COMMANDS**\ section below). The second non-option argument is a hostname
or address, or an NT domain name.
********
COMMANDS
********
\ **add**\
Add credentials to the kernel to be used for connecting to the given server, or servers in the given domain.
\ **clear**\
Clear credentials for a particular host or domain from the kernel.
\ **clearall**\
Clear all cifs credentials from the kernel.
\ **update**\
Update stored credentials in the kernel with a new username and
password.
*******
OPTIONS
*******
\ **-d**\ , \ **--domain**\
The provided host/domain argument is a NT domainname.
Ordinarily the second argument provided to cifscreds is treated as a
hostname or IP address. This option causes the cifscreds program to
treat that argument as an NT domainname instead.
If there are not host specific credentials for the mounted server, then
the kernel will next look for a set of domain credentials equivalent to
the domain= option provided at mount time.
\ **-u**\ , \ **--username**\
Ordinarily, the username is derived from the unix username of the user
adding the credentials. This option allows the user to substitute a
different username.
*****
NOTES
*****
The cifscreds utility requires a kernel built with support for the
\ **login**\ key type. That key type was added in v3.3 in mainline Linux
kernels.
Since \ **cifscreds**\ adds keys to the session keyring, it is highly
recommended that one use \ **pam_keyinit**\ to ensure that a session keyring
is established at login time.
********
SEE ALSO
********
pam_keyinit(8)
*******
AUTHORS
*******
The cifscreds program was originally developed by Igor Druzhinin
<jaxbrigs@gmail.com>. This manpage and a redesign of the code was done
by Jeff Layton <jlayton@samba.org>.
|