|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21585/root/usr/share/doc/dovecot-1.0.7/wiki/ |
Upload File : |
Passwd-file
===========
This file is compatible with a normal '/etc/passwd' file, and a password file
used by libpam-pwdfile<PAM> [PasswordDatabase.PAM.txt] plugin. It's in the
following format:
---%<-------------------------------------------------------------------------
user:password:uid:gid:(gecos):home:(shell):extra_fields
---%<-------------------------------------------------------------------------
For a password database it's enough to have only the user and password fields.
For a user database, you need to set also uid, gid and preferably also home
(see<VirtualUsers.txt>). (gecos) and (shell) fields are unused by Dovecot.
The password field can be in three formats:
* 'password': Assume CRYPT <password scheme>
[Authentication.PasswordSchemes.txt].
* '{SCHEME}password': The password is in the given <scheme>
[Authentication.PasswordSchemes.txt].
* 'password[13]': libpam-passwd file compatible format for CRYPT <scheme>
[Authentication.PasswordSchemes.txt].
* 'password[34]': libpam-passwd file compatible format for MD5 <scheme>
[Authentication.PasswordSchemes.txt].
extra_fields is a space-separated list of key=value pairs which can be used to
set various<passdb settings> [PasswordDatabase.ExtraFields.txt] and <userdb
settings> [UserDatabase.ExtraFields.txt]. Keys which begin with a 'userdb_'
prefix are used for userdb, others are used for passdb. So for example if you
wish to override<mail_location> [MailLocation.txt] setting for one user, use
'userdb_mail=mbox:~/mail'.
Multiple passwd files
---------------------
You can use all the <variables> [Variables.txt] in the passwd-file filenames,
for example:
---%<-------------------------------------------------------------------------
passdb passwd-file {
# Each domain has a separate passwd-file:
args = /etc/auth/%d/passwd
}
---%<-------------------------------------------------------------------------
If the filename contains %d, the usernames in the passwd file are expected to
contain only the user, not the domain. If you want to use full "user@domain"
usernames in the file, use %0.d instead.
Examples
--------
This file can be used as a passdb:
---%<-------------------------------------------------------------------------
user:{plain}password
user2:{plain}password2
---%<-------------------------------------------------------------------------
This file can be used as both a passwd and a userdb:
---%<-------------------------------------------------------------------------
user:{plain}pass:1000:1000::/home/user::userdb_mail=maildir:~/Maildir
allow_nets=192.168.0.0/24
user2:{plain}pass2:1001:1001::/home/user2
---%<-------------------------------------------------------------------------
(This file was created from the wiki on 2007-06-15 04:42)