2
3
.\" Author: [see the "AUTHOR" section]
3
.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
4
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5
6
.\" Manual: System Administration tools
6
7
.\" Source: Samba 3.4
7
8
.\" Language: English
9
.TH "SMBPASSWD" "8" "10/29/2009" "Samba 3\&.4" "System Administration tools"
10
.\" -----------------------------------------------------------------
11
.\" * (re)Define some macros
12
.\" -----------------------------------------------------------------
13
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14
.\" toupper - uppercase a string (locale-aware)
15
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17
.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
19
.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
21
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22
.\" SH-xref - format a cross-reference to an SH section
23
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33
.\" SH - level-one heading that works better for non-TTY output
34
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42
.nr an-prevailing-indent \\n[IN]
46
.HTML-TAG ".NH \\n[an-level]"
48
.nr an-no-space-flag 1
54
.\" if n (TTY output), use uppercase
59
.\" if not n (not TTY), use normal case (not uppercase)
63
.\" if not n (not TTY), put a border/line under subheading
68
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69
.\" SS - level-two heading that works better for non-TTY output
70
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
75
.nr an-prevailing-indent \\n[IN]
80
.nr an-no-space-flag 1
88
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89
.\" BB/BE - put background/screen (filled box) around block of text
90
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
103
.if "\\$2"adjust-for-leading-newline" \{\
111
.nr BW \\n(.lu-\\n(.i
114
.ie "\\$2"adjust-for-leading-newline" \{\
115
\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
118
\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
129
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
130
.\" BM/EM - put colored marker in margin next to block of text
131
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
148
\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
10
.TH "SMBPASSWD" "8" "01/18/2010" "Samba 3\&.4" "System Administration tools"
156
11
.\" -----------------------------------------------------------------
157
12
.\" * set default formatting
158
13
.\" -----------------------------------------------------------------
163
18
.\" -----------------------------------------------------------------
164
19
.\" * MAIN CONTENT STARTS HERE *
165
20
.\" -----------------------------------------------------------------
167
22
smbpasswd \- change a user\'s SMB password
171
\FCsmbpasswd\F[] [\-a] [\-c\ <config\ file>] [\-x] [\-d] [\-e] [\-D\ debuglevel] [\-n] [\-r\ <remote\ machine>] [\-R\ <name\ resolve\ order>] [\-m] [\-U\ username[%password]] [\-h] [\-s] [\-w\ pass] [\-W] [\-i] [\-L] [username]
25
smbpasswd [\-a] [\-c\ <config\ file>] [\-x] [\-d] [\-e] [\-D\ debuglevel] [\-n] [\-r\ <remote\ machine>] [\-R\ <name\ resolve\ order>] [\-m] [\-U\ username[%password]] [\-h] [\-s] [\-w\ pass] [\-W] [\-i] [\-L] [username]
175
28
This tool is part of the
200
53
When run by root, smbpasswd allows new users to be added and deleted in the smbpasswd file, as well as allows changes to the attributes of the user in this file to be made\&. When run by root,
202
55
accesses the local smbpasswd file directly, thus enabling changes to be made even if smbd is not running\&.
207
60
This option specifies that the username following should be added to the local smbpasswd file, with the new password typed (type <Enter> for the old password)\&. This option is ignored if the username following already exists in the smbpasswd file and it is treated like a regular change password command\&. Note that the default passdb backends require the user to already exist in the system password file (usually
208
\FC/etc/passwd\F[]), else the request to add the user will fail\&.
61
/etc/passwd), else the request to add the user will fail\&.
210
63
This option is only available when running smbpasswd as root\&.
325
178
\fBhost\fR: Do a standard host name to IP address resolution, using the system
326
\FC/etc/hosts \F[], NIS, or DNS lookups\&. This method of name resolution is operating system depended for instance on IRIX or Solaris this may be controlled by the
327
\FC/etc/nsswitch\&.conf\F[]
179
/etc/hosts, NIS, or DNS lookups\&. This method of name resolution is operating system depended for instance on IRIX or Solaris this may be controlled by the
328
181
file)\&. Note that this method is only used if the NetBIOS name type being queried is the 0x20 (server) name type, otherwise it is ignored\&.
357
210
The default order is
358
\FClmhosts, host, wins, bcast\F[]
211
lmhosts, host, wins, bcast
359
212
and without this parameter or any entry in the
360
213
\fBsmb.conf\fR(5)
361
214
file the name resolution methods will be attempted in this order\&.
380
233
This option prints the help string for
381
\FC smbpasswd\F[], selecting the correct one for running as root or as an ordinary user\&.
234
smbpasswd, selecting the correct one for running as root or as an ordinary user\&.
386
239
This option causes smbpasswd to be silent (i\&.e\&. not issue prompts) and to read its old and new passwords from standard input, rather than from
390
243
program does)\&. This option is to aid people writing scripts to drive smbpasswd
408
261
This option is same as "\-w" except that the password should be entered using stdin\&.
410
263
This parameter is only available if Samba has been compiled with LDAP support\&. The
412
265
switch is used to specify the password to be used with the
413
266
\m[blue]\fBldap admin dn\fR\m[]\&. Note that the password is stored in the
415
268
and is keyed off of the admin\'s DN\&. This means that if the value of
416
269
\fIldap admin dn\fR
417
270
ever changes, the password will need to be manually updated as well\&.