diff options
author | David Sommerseth <davids@redhat.com> | 2014-10-03 15:53:45 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-10-05 15:29:41 -0400 |
commit | 64845bdc829d6a6179d0762b7e97ef23828562a3 (patch) | |
tree | 639cc68e573d665a61a45836d1793ac2eb96932c /man/systemd-ask-password.xml | |
parent | 75a0da952f603006d6b3535ecaf8ebe2bded30e7 (diff) |
ask-password: Add --echo to enable echoing the user input
Programs such as OpenVPN may use ask-password for not only retrieving
passwords, but also usernames. Masking usernames with * seems just silly.
v2 - Don't mess with termios flags, instead print the input
instead of an asterix. Resolves issues with backspace
and TAB input.
v3 - Renamed 'do_echo' variables and argument to 'echo'. Also
modified the ask_password_{tty,agent,auto} API instead of
additional wrapper functions.
[zj: undo changes to ask_password_auto, since no callers were using
the new argument.]
Diffstat (limited to 'man/systemd-ask-password.xml')
-rw-r--r-- | man/systemd-ask-password.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/man/systemd-ask-password.xml b/man/systemd-ask-password.xml index ce0ac3d1a2..448df62100 100644 --- a/man/systemd-ask-password.xml +++ b/man/systemd-ask-password.xml @@ -127,6 +127,17 @@ </varlistentry> <varlistentry> + <term><option>--echo</option></term> + + <listitem><para>Echo the user input + instead of masking it. This is useful + when using + <filename>systemd-ask-password</filename> + to query for usernames. + </para></listitem> + </varlistentry> + + <varlistentry> <term><option>--no-tty</option></term> <listitem><para>Never ask for password |