# HG changeset patch # User Pascal Volk # Date 1393198692 0 # Node ID 935b4901d65261f528b6466bf88527757e278a66 # Parent 81f4bfc34ed807d0bb4d288c1027152a717f89b9 {man1,doc/web}: Added description of userpassword's --hash option. diff -r 81f4bfc34ed8 -r 935b4901d652 doc/web/source/howto/manage_accounts.rst --- a/doc/web/source/howto/manage_accounts.rst Sun Feb 23 18:16:57 2014 +0000 +++ b/doc/web/source/howto/manage_accounts.rst Sun Feb 23 23:38:12 2014 +0000 @@ -151,8 +151,10 @@ .. program:: vmm userpassword Syntax: - | **vmm userpassword** *address* [**-p** *password*] [**-s** *scheme*] - | **vmm up** *address* [**-p** *password*] [**-s** *scheme*] + | **vmm userpassword** *address* ([**-p** *password*] [**-s** *scheme*] | \ + [**‒‒hash** *pwhash*]) + | **vmm up** *address* ([**-p** *password*] [**-s** *scheme*] | \ + [**‒‒hash** *pwhash*]) .. option:: -p password @@ -163,9 +165,22 @@ When a *scheme* was specified, it overrides the *misc.password_scheme* setting, configured in the :file:`vmm.cfg` file. +.. option:: --hash pwhash + + A hashed password, prefixed with **{**\ *SCHEME*\ **}**; as generated by + :command:`doveadm pw`. + You should enclose the hashed password in single quotes, if it contains + one ore more dollar signs (**$**). + The password of an account can be updated with this subcommand. -If no *password* was provided, :command:`vmm` will prompt for it interactively. +If no *password* or *pwhash* was provided, :command:`vmm` will prompt for a +password interactively. + +.. note:: + When passing a hashed password, :command:`vmm` checks only if the included + *SCHEME* is supported by your Dovecot installation. No further checks are + done. Example: diff -r 81f4bfc34ed8 -r 935b4901d652 man/man1/vmm.1 --- a/man/man1/vmm.1 Sun Feb 23 18:16:57 2014 +0000 +++ b/man/man1/vmm.1 Sun Feb 23 23:38:12 2014 +0000 @@ -1,4 +1,4 @@ -.TH "VMM" "1" "2014-02-15" "vmm 0.7" "vmm" +.TH "VMM" "1" "2014-02-23" "vmm 0.7" "vmm" .SH NAME vmm \- command line tool to manage email domains/accounts/aliases .\" ----------------------------------------------------------------------- @@ -836,10 +836,12 @@ .\" ------------------------------------ .SS userpassword (up) .BI "vmm userpassword" " address" -.RB [ \-p +.RB ([ \-p .IR password ] .RB [ \-s -.IR scheme ] +.IR scheme "] |" +.B \-\-hash +.IR pwhash ]) .PP .TP .BI "\-p " password @@ -855,14 +857,30 @@ .I vmm.cfg file. .\" ------------------------------------ +.TP +.BI "\-\-hash " pwhash +A hashed password, prefixed with +.BI { SCHEME }; +as generated by +.BR "doveadm pw" . +You should enclose the hashed password in single quotes, if it contains +one ore more dollar signs +.RB ( $ ). +.\" ------------------------------------ .PP The password of an account can be updated with this subcommand. .PP If no -.I password +.IR password " or " pwhash was provided, .B vmm -will prompt for it interactively. +will prompt for a password interactively. +.IP Note: +When passing a hashed password, +.B vmm +checks only if the included +.I SCHEME +is supported by your Dovecot installation. No further checks are done. .PP Example: .PP @@ -1140,6 +1158,7 @@ will be used when none of the both above mentioned files exists. .\" ----------------------------------------------------------------------- .SH SEE ALSO +.BR doveadm\-pw (1), .BR dsync (1), .BR transport (5), .BR vmm.cfg (5)