diff options
author | Denys Vlasenko | 2015-10-19 01:20:36 +0200 |
---|---|---|
committer | Denys Vlasenko | 2015-10-19 01:20:36 +0200 |
commit | 95dee81a465668151cff3ffd757456a9a10c1f1f (patch) | |
tree | a9f128900d1fc484f26cd521525907fa1af262c0 /loginutils/passwd.c | |
parent | 28826ac8c02793431203edb4adb961d5521d643d (diff) | |
download | busybox-95dee81a465668151cff3ffd757456a9a10c1f1f.zip busybox-95dee81a465668151cff3ffd757456a9a10c1f1f.tar.gz |
loginutils/*: convert to new-style "one file" applets
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils/passwd.c')
-rw-r--r-- | loginutils/passwd.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/loginutils/passwd.c b/loginutils/passwd.c index 1509089..73726d3 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c @@ -2,6 +2,30 @@ /* * Licensed under GPLv2 or later, see file LICENSE in this source tree. */ +//config:config PASSWD +//config: bool "passwd" +//config: default y +//config: select FEATURE_SYSLOG +//config: help +//config: passwd changes passwords for user and group accounts. A normal user +//config: may only change the password for his/her own account, the super user +//config: may change the password for any account. The administrator of a group +//config: may change the password for the group. +//config: +//config: Note that Busybox binary must be setuid root for this applet to +//config: work properly. +//config: +//config:config FEATURE_PASSWD_WEAK_CHECK +//config: bool "Check new passwords for weakness" +//config: default y +//config: depends on PASSWD +//config: help +//config: With this option passwd will refuse new passwords which are "weak". + +//applet:/* Needs to be run by root or be suid root - needs to change /etc/{passwd,shadow}: */ +//applet:IF_PASSWD(APPLET(passwd, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) + +//kbuild:lib-$(CONFIG_PASSWD) += passwd.o //usage:#define passwd_trivial_usage //usage: "[OPTIONS] [USER]" |