This file is compatible with regular /etc/passwd and a password file used by libpam-pwdfile. It's in the following format:
For password database, it's enough to have only user and password fields. For user database, you need to set also uid and gid and preferably home (see VirtualUsers).
extra_fields is a space-separated list of key=value pairs which can be used to set various settings, for example you can override default_mail_env setting by giving mail=mbox:~/mail.
The password field can be in three formats:
- password: Assume CRYPT password scheme
- password[type]: libpam-passwd file compatible format. Type is one of:
- 13: CRYPT scheme
- 34: MD5 scheme
Here's an example file for used by passdb:
Or for passdb and userdb: