- Timestamp:
- May 23, 2008, 6:56:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/docs/htmldocs/manpages/smbpasswd.8.html
r44 r134 1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>smbpasswd</title><link rel="stylesheet" href=" samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.0"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="smbpasswd.8"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>smbpasswd — change a user's SMB password</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="literal">smbpasswd</code> [-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]</p></div></div><div class="refsect1" lang="en"><a name="id259391"></a><h2>DESCRIPTION</h2><p>This tool is part of the <ahref="samba.7.html"><span class="citerefentry"><span class="refentrytitle">samba</span>(7)</span></a> suite.</p><p>The smbpasswd program has several different1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>smbpasswd</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="smbpasswd.8"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>smbpasswd — change a user's SMB password</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="literal">smbpasswd</code> [-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]</p></div></div><div class="refsect1" lang="en"><a name="id283379"></a><h2>DESCRIPTION</h2><p>This tool is part of the <a class="citerefentry" href="samba.7.html"><span class="citerefentry"><span class="refentrytitle">samba</span>(7)</span></a> suite.</p><p>The smbpasswd program has several different 2 2 functions, depending on whether it is run by the <span class="emphasis"><em>root</em></span> user 3 3 or not. When run as a normal user it allows the user to change … … 9 9 however in that it is not <span class="emphasis"><em>setuid root</em></span> but works in 10 10 a client-server mode and communicates with a 11 locally running <a href="smbd.8.html"><span class="citerefentry"><span class="refentrytitle">smbd</span>(8)</span></a>. As a consequence in order for this to11 locally running <a class="citerefentry" href="smbd.8.html"><span class="citerefentry"><span class="refentrytitle">smbd</span>(8)</span></a>. As a consequence in order for this to 12 12 succeed the smbd daemon must be running on the local machine. On a 13 13 UNIX machine the encrypted SMB passwords are usually stored in 14 the <a href="smbpasswd.5.html"><span class="citerefentry"><span class="refentrytitle">smbpasswd</span>(5)</span></a> file. </p><p>When run by an ordinary user with no options, smbpasswd14 the <a class="citerefentry" href="smbpasswd.5.html"><span class="citerefentry"><span class="refentrytitle">smbpasswd</span>(5)</span></a> file. </p><p>When run by an ordinary user with no options, smbpasswd 15 15 will prompt them for their old SMB password and then ask them 16 16 for their new password twice, to ensure that the new password … … 26 26 smbpasswd</code> accesses the local smbpasswd file 27 27 directly, thus enabling changes to be made even if smbd is not 28 running. </p></div><div class="refsect1" lang="en"><a name="id2 60409"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-a</span></dt><dd><p>28 running. </p></div><div class="refsect1" lang="en"><a name="id282931"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-a</span></dt><dd><p> 29 29 This option specifies that the username following should be added to the local smbpasswd file, with the new 30 30 password typed (type <Enter> for the old password). This option is ignored if the username following … … 47 47 will fail. </p><p>If the smbpasswd file is in the 'old' format (pre-Samba 2.0 48 48 format) there is no space in the user's password entry to write 49 this information and the command will FAIL. See <a href="smbpasswd.5.html"><span class="citerefentry"><span class="refentrytitle">smbpasswd</span>(5)</span></a> for details on the 'old' and new password file formats.49 this information and the command will FAIL. See <a class="citerefentry" href="smbpasswd.5.html"><span class="citerefentry"><span class="refentrytitle">smbpasswd</span>(5)</span></a> for details on the 'old' and new password file formats. 50 50 </p><p>This option is only available when running smbpasswd as 51 51 root.</p></dd><dt><span class="term">-e</span></dt><dd><p>This option specifies that the username following … … 55 55 the user will be able to authenticate via SMB once again. </p><p>If the smbpasswd file is in the 'old' format, then <code class="literal"> 56 56 smbpasswd</code> will FAIL to enable the account. 57 See <a href="smbpasswd.5.html"><span class="citerefentry"><span class="refentrytitle">smbpasswd</span>(5)</span></a> for57 See <a class="citerefentry" href="smbpasswd.5.html"><span class="citerefentry"><span class="refentrytitle">smbpasswd</span>(5)</span></a> for 58 58 details on the 'old' and new password file formats. </p><p>This option is only available when running smbpasswd as root. 59 59 </p></dd><dt><span class="term">-D debuglevel</span></dt><dd><p><em class="replaceable"><code>debuglevel</code></em> is an integer … … 95 95 cause names to be resolved as follows: </p><div class="itemizedlist"><ul type="disc"><li><p><code class="constant">lmhosts</code>: Lookup an IP 96 96 address in the Samba lmhosts file. If the line in lmhosts has 97 no name type attached to the NetBIOS name (see the <a href="lmhosts.5.html"><span class="citerefentry"><span class="refentrytitle">lmhosts</span>(5)</span></a> for details) then97 no name type attached to the NetBIOS name (see the <a class="citerefentry" href="lmhosts.5.html"><span class="citerefentry"><span class="refentrytitle">lmhosts</span>(5)</span></a> for details) then 98 98 any name type matches for lookup.</p></li><li><p><code class="constant">host</code>: Do a standard host 99 99 name to IP address resolution, using the system <code class="filename">/etc/hosts … … 111 111 reliable of the name resolution methods as it depends on the 112 112 target host being on a locally connected subnet.</p></li></ul></div><p>The default order is <code class="literal">lmhosts, host, wins, bcast</code> 113 and without this parameter or any entry in the <a href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> file the name resolution methods will113 and without this parameter or any entry in the <a class="citerefentry" href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> file the name resolution methods will 114 114 be attempted in this order. </p></dd><dt><span class="term">-m</span></dt><dd><p>This option tells smbpasswd that the account 115 115 being changed is a MACHINE account. Currently this is used … … 129 129 has been compiled with LDAP support. The <em class="parameter"><code>-w</code></em> 130 130 switch is used to specify the password to be used with the 131 <a class=" indexterm" name="id300725"></a>ldap admin dn. Note that the password is stored in131 <a class="link" href="smb.conf.5.html#LDAPADMINDN">ldap admin dn</a>. Note that the password is stored in 132 132 the <code class="filename">secrets.tdb</code> and is keyed off 133 133 of the admin's DN. This means that if the value of <em class="parameter"><code>ldap … … 139 139 has been compiled with LDAP support. The <em class="parameter"><code>-W</code></em> 140 140 switch is used to specify the password to be used with the 141 <a class=" indexterm" name="id300773"></a>ldap admin dn. Note that the password is stored in141 <a class="link" href="smb.conf.5.html#LDAPADMINDN">ldap admin dn</a>. Note that the password is stored in 142 142 the <code class="filename">secrets.tdb</code> and is keyed off 143 143 of the admin's DN. This means that if the value of <em class="parameter"><code>ldap … … 152 152 can specify this parameter as only root has the permission needed 153 153 to modify attributes directly in the local smbpasswd file. 154 </p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id3 00843"></a><h2>NOTES</h2><p>Since <code class="literal">smbpasswd</code> works in client-server154 </p></dd></dl></div></div><div class="refsect1" lang="en"><a name="id324951"></a><h2>NOTES</h2><p>Since <code class="literal">smbpasswd</code> works in client-server 155 155 mode communicating with a local smbd for a non-root user then 156 156 the smbd daemon must be running for this to work. A common problem … … 158 158 smbd</code> running on the local machine by specifying either <em class="parameter"><code>allow 159 159 hosts</code></em> or <em class="parameter"><code>deny hosts</code></em> entry in 160 the <a href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> file and neglecting to160 the <a class="citerefentry" href="smb.conf.5.html"><span class="citerefentry"><span class="refentrytitle">smb.conf</span>(5)</span></a> file and neglecting to 161 161 allow "localhost" access to the smbd. </p><p>In addition, the smbpasswd command is only useful if Samba 162 has been set up to use encrypted passwords. </p></div><div class="refsect1" lang="en"><a name="id3 00892"></a><h2>VERSION</h2><p>This man page is correct for version 3.0 of the Samba suite.</p></div><div class="refsect1" lang="en"><a name="id300902"></a><h2>SEE ALSO</h2><p><a href="smbpasswd.5.html"><span class="citerefentry"><span class="refentrytitle">smbpasswd</span>(5)</span></a>, <a href="Samba.7.html"><span class="citerefentry"><span class="refentrytitle">Samba</span>(7)</span></a>.</p></div><div class="refsect1" lang="en"><a name="id300927"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities162 has been set up to use encrypted passwords. </p></div><div class="refsect1" lang="en"><a name="id324996"></a><h2>VERSION</h2><p>This man page is correct for version 3.0 of the Samba suite.</p></div><div class="refsect1" lang="en"><a name="id325006"></a><h2>SEE ALSO</h2><p><a class="citerefentry" href="smbpasswd.5.html"><span class="citerefentry"><span class="refentrytitle">smbpasswd</span>(5)</span></a>, <a class="citerefentry" href="Samba.7.html"><span class="citerefentry"><span class="refentrytitle">Samba</span>(7)</span></a>.</p></div><div class="refsect1" lang="en"><a name="id325030"></a><h2>AUTHOR</h2><p>The original Samba software and related utilities 163 163 were created by Andrew Tridgell. Samba is now developed 164 164 by the Samba Team as an Open Source project similar 165 165 to the way the Linux kernel is developed.</p><p>The original Samba man pages were written by Karl Auer. 166 166 The man page sources were converted to YODL format (another 167 excellent piece of Open Source software, available at <a href="ftp://ftp.icce.rug.nl/pub/unix/" target="_top">167 excellent piece of Open Source software, available at <a class="ulink" href="ftp://ftp.icce.rug.nl/pub/unix/" target="_top"> 168 168 ftp://ftp.icce.rug.nl/pub/unix/</a>) and updated for the Samba 2.0 169 169 release by Jeremy Allison. The conversion to DocBook for
Note:
See TracChangeset
for help on using the changeset viewer.