From 9731ca7611e19827702eb8c690fb6c3b37403319 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 20 Jan 2017 19:47:49 +0100 Subject: 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 --- loginutils/passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loginutils/passwd.c') diff --git a/loginutils/passwd.c b/loginutils/passwd.c index 52b66ca50..b7b7423fd 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c @@ -32,7 +32,7 @@ //usage:#define passwd_full_usage "\n\n" //usage: "Change USER's password (default: current user)" //usage: "\n" -//usage: "\n -a ALG Encryption method" +//usage: "\n -a ALG "CRYPT_METHODS_HELP_STR //usage: "\n -d Set password to ''" //usage: "\n -l Lock (disable) account" //usage: "\n -u Unlock (enable) account" -- cgit v1.2.3