1
<!-- $Id: mod_auth.html,v 1.1 2011/02/20 18:16:24 castaglia Exp $ -->
1
<!-- $Id: mod_auth.html,v 1.2 2011/04/06 17:54:27 castaglia Exp $ -->
2
2
<!-- $Source: /cvsroot/proftp/proftpd/doc/modules/mod_auth.html,v $ -->
41
<h2><a name="UserPassword">UserPassword</a></h2>
42
<strong>Syntax:</strong> UserPassword <em>user encrypted-password</em><br>
43
<strong>Default:</strong> None<br>
44
<strong>Context:</strong> server config, <code><VirtualHost></code>, <code><Global></code>, <code><Anonymous></code><br>
45
<strong>Module:</strong> mod_auth<br>
46
<strong>Compatibility:</strong> 0.99.0pl5 and later
49
The <code>UserPassword</code> directive creates a password for a particular
50
<em>user</em>; this configured password will <i>override</i> the user's normal
51
password in <code>/etc/passwd</code> (or whichever auth module handles that
52
user). <b>Note</b> that the <em>user</em> configured is a real user, and
53
<b>not</b> a <code>UserAlias</code>.
56
The <em>encrypted-password</em> parameter is a string which has been passed
57
through the standard Unix <code>crypt(3)</code> function. <b>Do not use a
58
cleartext password</b>. To obtain this <em>encrypted-password</em> value,
59
you can use the <a href="../utils/ftpasswd.html"><code>ftpasswd</code></a>
60
script's <code>--hash</code> option, <i>e.g.</i>:
67
ftpasswd: $1$EsnXxyD6$tsO2YwTAT/Tl5u1NYPHIw1
71
Example configuration:
73
# Override user bob's password with a hash version of "password"
74
UserPassword bob $1$EsnXxyD6$tsO2YwTAT/Tl5u1NYPHIw1
40
79
<h2><a name="Installation">Installation</a></h2>
41
80
The <code>mod_auth</code> module is compiled by default.