aboutsummaryrefslogtreecommitdiff
path: root/loginutils/chpasswd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-01-20 19:47:49 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-01-20 19:47:49 +0100
commit9731ca7611e19827702eb8c690fb6c3b37403319 (patch)
tree703d8fbaf75e872fca83ca1e57e830eaeff1aace /loginutils/chpasswd.c
parent38972a8df1df970a5878bbd7fc5ef6259f1168ab (diff)
downloadbusybox-9731ca7611e19827702eb8c690fb6c3b37403319.tar.gz
password utils: improve --help, make DEFAULT_PASSWD_ALGO visible if CHPASSWD
Was: $ cryptpw --help ... Print crypt(3) hashed PASSWORD -P,--password-fd=N Read password from fd N -m,--method=TYPE Encryption method -S,--salt=SALT User: "What methods exist? which one os default?" Now: Print crypt(3) hashed PASSWORD -P,--password-fd N Read password from fd N -m,--method TYPE des,md5,sha256/512 (default des) -S,--salt SALT Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils/chpasswd.c')
-rw-r--r--loginutils/chpasswd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/loginutils/chpasswd.c b/loginutils/chpasswd.c
index 2d268be67..baafd35c8 100644
--- a/loginutils/chpasswd.c
+++ b/loginutils/chpasswd.c
@@ -13,9 +13,9 @@
//config: and uses this information to update a group of existing users.
//config:
//config:config FEATURE_DEFAULT_PASSWD_ALGO
-//config: string "Default password encryption method (passwd -a, cryptpw -m parameter)"
+//config: string "Default encryption method (passwd -a, cryptpw -m, chpasswd -c ALG)"
//config: default "des"
-//config: depends on PASSWD || CRYPTPW
+//config: depends on PASSWD || CRYPTPW || CHPASSWD
//config: help
//config: Possible choices are "d[es]", "m[d5]", "s[ha256]" or "sha512".
@@ -29,13 +29,13 @@
//usage: "Read user:password from stdin and update /etc/passwd\n"
//usage: IF_LONG_OPTS(
//usage: "\n -e,--encrypted Supplied passwords are in encrypted form"
-//usage: "\n -m,--md5 Use MD5 encryption instead of DES"
-//usage: "\n -c,--crypt-method Use the specified method to encrypt the passwords"
+//usage: "\n -m,--md5 Eencrypt using md5, not des"
+//usage: "\n -c,--crypt-method ALG "CRYPT_METHODS_HELP_STR
//usage: )
//usage: IF_NOT_LONG_OPTS(
//usage: "\n -e Supplied passwords are in encrypted form"
-//usage: "\n -m Use MD5 encryption instead of DES"
-//usage: "\n -c Use the specified method to encrypt the passwords"
+//usage: "\n -m Eencrypt using md5, not des"
+//usage: "\n -c ALG "CRYPT_METHODS_HELP_STR
//usage: )
#include "libbb.h"