mod_auth
mod_auth.c
file for
ProFTPD 1.3.x, and is compiled by default.
<VirtualHost>
, <Global>
The DefaultRoot
directive is used to chroot()
the
session process for the connecting client. A fuller explanation can be
found in the Chroot howto.
<VirtualHost>
, <Global>
, <Anonymous>
The UserPassword
directive creates a password for a particular
user; this configured password will override the user's normal
password in /etc/passwd
(or whichever auth module handles that
user). Note that the user configured is a real user, and
not a UserAlias
.
The encrypted-password parameter is a string which has been passed
through the standard Unix crypt(3)
function. Do not use a
cleartext password. To obtain this encrypted-password value,
you can use the ftpasswd
script's --hash
option, e.g.:
# ftpasswd --hash Password: Re-type password: ftpasswd: $1$EsnXxyD6$tsO2YwTAT/Tl5u1NYPHIw1
Example configuration:
# Override user bob's password with a hash version of "password" UserPassword bob $1$EsnXxyD6$tsO2YwTAT/Tl5u1NYPHIw1
mod_auth
module is compiled by default.