aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/Config.src104
-rw-r--r--loginutils/add-remove-shell.c16
-rw-r--r--loginutils/addgroup.c10
-rw-r--r--loginutils/adduser.c22
-rw-r--r--loginutils/chpasswd.c8
-rw-r--r--loginutils/cryptpw.c14
-rw-r--r--loginutils/deluser.c12
-rw-r--r--loginutils/getty.c24
-rw-r--r--loginutils/login.c32
-rw-r--r--loginutils/passwd.c16
-rw-r--r--loginutils/su.c10
-rw-r--r--loginutils/sulogin.c6
-rw-r--r--loginutils/vlock.c8
13 files changed, 141 insertions, 141 deletions
diff --git a/loginutils/Config.src b/loginutils/Config.src
index beb4eb855..680f42118 100644
--- a/loginutils/Config.src
+++ b/loginutils/Config.src
@@ -9,87 +9,87 @@ config FEATURE_SHADOWPASSWDS
9 bool "Support shadow passwords" 9 bool "Support shadow passwords"
10 default y 10 default y
11 help 11 help
12 Build support for shadow password in /etc/shadow. This file is only 12 Build support for shadow password in /etc/shadow. This file is only
13 readable by root and thus the encrypted passwords are no longer 13 readable by root and thus the encrypted passwords are no longer
14 publicly readable. 14 publicly readable.
15 15
16config USE_BB_PWD_GRP 16config USE_BB_PWD_GRP
17 bool "Use internal password and group functions rather than system functions" 17 bool "Use internal password and group functions rather than system functions"
18 default y 18 default y
19 help 19 help
20 If you leave this disabled, busybox will use the system's password 20 If you leave this disabled, busybox will use the system's password
21 and group functions. And if you are using the GNU C library 21 and group functions. And if you are using the GNU C library
22 (glibc), you will then need to install the /etc/nsswitch.conf 22 (glibc), you will then need to install the /etc/nsswitch.conf
23 configuration file and the required /lib/libnss_* libraries in 23 configuration file and the required /lib/libnss_* libraries in
24 order for the password and group functions to work. This generally 24 order for the password and group functions to work. This generally
25 makes your embedded system quite a bit larger. 25 makes your embedded system quite a bit larger.
26 26
27 Enabling this option will cause busybox to directly access the 27 Enabling this option will cause busybox to directly access the
28 system's /etc/password, /etc/group files (and your system will be 28 system's /etc/password, /etc/group files (and your system will be
29 smaller, and I will get fewer emails asking about how glibc NSS 29 smaller, and I will get fewer emails asking about how glibc NSS
30 works). When this option is enabled, you will not be able to use 30 works). When this option is enabled, you will not be able to use
31 PAM to access remote LDAP password servers and whatnot. And if you 31 PAM to access remote LDAP password servers and whatnot. And if you
32 want hostname resolution to work with glibc, you still need the 32 want hostname resolution to work with glibc, you still need the
33 /lib/libnss_* libraries. 33 /lib/libnss_* libraries.
34 34
35 If you need to use glibc's nsswitch.conf mechanism 35 If you need to use glibc's nsswitch.conf mechanism
36 (e.g. if user/group database is NOT stored in /etc/passwd etc), 36 (e.g. if user/group database is NOT stored in /etc/passwd etc),
37 you must NOT use this option. 37 you must NOT use this option.
38 38
39 If you enable this option, it will add about 1.5k. 39 If you enable this option, it will add about 1.5k.
40 40
41config USE_BB_SHADOW 41config USE_BB_SHADOW
42 bool "Use internal shadow password functions" 42 bool "Use internal shadow password functions"
43 default y 43 default y
44 depends on USE_BB_PWD_GRP && FEATURE_SHADOWPASSWDS 44 depends on USE_BB_PWD_GRP && FEATURE_SHADOWPASSWDS
45 help 45 help
46 If you leave this disabled, busybox will use the system's shadow 46 If you leave this disabled, busybox will use the system's shadow
47 password handling functions. And if you are using the GNU C library 47 password handling functions. And if you are using the GNU C library
48 (glibc), you will then need to install the /etc/nsswitch.conf 48 (glibc), you will then need to install the /etc/nsswitch.conf
49 configuration file and the required /lib/libnss_* libraries in 49 configuration file and the required /lib/libnss_* libraries in
50 order for the shadow password functions to work. This generally 50 order for the shadow password functions to work. This generally
51 makes your embedded system quite a bit larger. 51 makes your embedded system quite a bit larger.
52 52
53 Enabling this option will cause busybox to directly access the 53 Enabling this option will cause busybox to directly access the
54 system's /etc/shadow file when handling shadow passwords. This 54 system's /etc/shadow file when handling shadow passwords. This
55 makes your system smaller (and I will get fewer emails asking about 55 makes your system smaller (and I will get fewer emails asking about
56 how glibc NSS works). When this option is enabled, you will not be 56 how glibc NSS works). When this option is enabled, you will not be
57 able to use PAM to access shadow passwords from remote LDAP 57 able to use PAM to access shadow passwords from remote LDAP
58 password servers and whatnot. 58 password servers and whatnot.
59 59
60config USE_BB_CRYPT 60config USE_BB_CRYPT
61 bool "Use internal crypt functions" 61 bool "Use internal crypt functions"
62 default y 62 default y
63 help 63 help
64 Busybox has internal DES and MD5 crypt functions. 64 Busybox has internal DES and MD5 crypt functions.
65 They produce results which are identical to corresponding 65 They produce results which are identical to corresponding
66 standard C library functions. 66 standard C library functions.
67 67
68 If you leave this disabled, busybox will use the system's 68 If you leave this disabled, busybox will use the system's
69 crypt functions. Most C libraries use large (~70k) 69 crypt functions. Most C libraries use large (~70k)
70 static buffers there, and also combine them with more general 70 static buffers there, and also combine them with more general
71 DES encryption/decryption. 71 DES encryption/decryption.
72 72
73 For busybox, having large static buffers is undesirable, 73 For busybox, having large static buffers is undesirable,
74 especially on NOMMU machines. Busybox also doesn't need 74 especially on NOMMU machines. Busybox also doesn't need
75 DES encryption/decryption and can do with smaller code. 75 DES encryption/decryption and can do with smaller code.
76 76
77 If you enable this option, it will add about 4.8k of code 77 If you enable this option, it will add about 4.8k of code
78 if you are building dynamically linked executable. 78 if you are building dynamically linked executable.
79 In static build, it makes code _smaller_ by about 1.2k, 79 In static build, it makes code _smaller_ by about 1.2k,
80 and likely many kilobytes less of bss. 80 and likely many kilobytes less of bss.
81 81
82config USE_BB_CRYPT_SHA 82config USE_BB_CRYPT_SHA
83 bool "Enable SHA256/512 crypt functions" 83 bool "Enable SHA256/512 crypt functions"
84 default y 84 default y
85 depends on USE_BB_CRYPT 85 depends on USE_BB_CRYPT
86 help 86 help
87 Enable this if you have passwords starting with "$5$" or "$6$" 87 Enable this if you have passwords starting with "$5$" or "$6$"
88 in your /etc/passwd or /etc/shadow files. These passwords 88 in your /etc/passwd or /etc/shadow files. These passwords
89 are hashed using SHA256 and SHA512 algorithms. Support for them 89 are hashed using SHA256 and SHA512 algorithms. Support for them
90 was added to glibc in 2008. 90 was added to glibc in 2008.
91 With this option off, login will fail password check for any 91 With this option off, login will fail password check for any
92 user which has password encrypted with these algorithms. 92 user which has password encrypted with these algorithms.
93 93
94INSERT 94INSERT
95 95
diff --git a/loginutils/add-remove-shell.c b/loginutils/add-remove-shell.c
index 54b62c773..750b44bd6 100644
--- a/loginutils/add-remove-shell.c
+++ b/loginutils/add-remove-shell.c
@@ -8,16 +8,16 @@
8 * for details. 8 * for details.
9 */ 9 */
10//config:config ADD_SHELL 10//config:config ADD_SHELL
11//config: bool "add-shell" 11//config: bool "add-shell (2.8 kb)"
12//config: default y if DESKTOP 12//config: default y if DESKTOP
13//config: help 13//config: help
14//config: Add shells to /etc/shells. 14//config: Add shells to /etc/shells.
15//config: 15//config:
16//config:config REMOVE_SHELL 16//config:config REMOVE_SHELL
17//config: bool "remove-shell" 17//config: bool "remove-shell (2.7 kb)"
18//config: default y if DESKTOP 18//config: default y if DESKTOP
19//config: help 19//config: help
20//config: Remove shells from /etc/shells. 20//config: Remove shells from /etc/shells.
21 21
22// APPLET_ODDNAME:name main location suid_type help 22// APPLET_ODDNAME:name main location suid_type help
23//applet:IF_ADD_SHELL( APPLET_ODDNAME(add-shell , add_remove_shell, BB_DIR_USR_SBIN, BB_SUID_DROP, add_shell )) 23//applet:IF_ADD_SHELL( APPLET_ODDNAME(add-shell , add_remove_shell, BB_DIR_USR_SBIN, BB_SUID_DROP, add_shell ))
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c
index 94da4efbb..b197fc149 100644
--- a/loginutils/addgroup.c
+++ b/loginutils/addgroup.c
@@ -10,10 +10,10 @@
10 * 10 *
11 */ 11 */
12//config:config ADDGROUP 12//config:config ADDGROUP
13//config: bool "addgroup" 13//config: bool "addgroup (8.2 kb)"
14//config: default y 14//config: default y
15//config: help 15//config: help
16//config: Utility for creating a new group account. 16//config: Utility for creating a new group account.
17//config: 17//config:
18//config:config FEATURE_ADDGROUP_LONG_OPTIONS 18//config:config FEATURE_ADDGROUP_LONG_OPTIONS
19//config: bool "Enable long options" 19//config: bool "Enable long options"
@@ -25,9 +25,9 @@
25//config: default y 25//config: default y
26//config: depends on ADDGROUP 26//config: depends on ADDGROUP
27//config: help 27//config: help
28//config: If called with two non-option arguments, 28//config: If called with two non-option arguments,
29//config: addgroup will add an existing user to an 29//config: addgroup will add an existing user to an
30//config: existing group. 30//config: existing group.
31 31
32//applet:IF_ADDGROUP(APPLET(addgroup, BB_DIR_USR_SBIN, BB_SUID_DROP)) 32//applet:IF_ADDGROUP(APPLET(addgroup, BB_DIR_USR_SBIN, BB_SUID_DROP))
33 33
diff --git a/loginutils/adduser.c b/loginutils/adduser.c
index 40bc816a1..ef18278ac 100644
--- a/loginutils/adduser.c
+++ b/loginutils/adduser.c
@@ -8,10 +8,10 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
9 */ 9 */
10//config:config ADDUSER 10//config:config ADDUSER
11//config: bool "adduser" 11//config: bool "adduser (15 kb)"
12//config: default y 12//config: default y
13//config: help 13//config: help
14//config: Utility for creating a new user account. 14//config: Utility for creating a new user account.
15//config: 15//config:
16//config:config FEATURE_ADDUSER_LONG_OPTIONS 16//config:config FEATURE_ADDUSER_LONG_OPTIONS
17//config: bool "Enable long options" 17//config: bool "Enable long options"
@@ -23,19 +23,19 @@
23//config: default n 23//config: default n
24//config: depends on ADDUSER || ADDGROUP 24//config: depends on ADDUSER || ADDGROUP
25//config: help 25//config: help
26//config: Enable sanity check on user and group names in adduser and addgroup. 26//config: Enable sanity check on user and group names in adduser and addgroup.
27//config: To avoid problems, the user or group name should consist only of 27//config: To avoid problems, the user or group name should consist only of
28//config: letters, digits, underscores, periods, at signs and dashes, 28//config: letters, digits, underscores, periods, at signs and dashes,
29//config: and not start with a dash (as defined by IEEE Std 1003.1-2001). 29//config: and not start with a dash (as defined by IEEE Std 1003.1-2001).
30//config: For compatibility with Samba machine accounts "$" is also supported 30//config: For compatibility with Samba machine accounts "$" is also supported
31//config: at the end of the user or group name. 31//config: at the end of the user or group name.
32//config: 32//config:
33//config:config LAST_ID 33//config:config LAST_ID
34//config: int "Last valid uid or gid for adduser and addgroup" 34//config: int "Last valid uid or gid for adduser and addgroup"
35//config: depends on ADDUSER || ADDGROUP 35//config: depends on ADDUSER || ADDGROUP
36//config: default 60000 36//config: default 60000
37//config: help 37//config: help
38//config: Last valid uid or gid for adduser and addgroup 38//config: Last valid uid or gid for adduser and addgroup
39//config: 39//config:
40//config:config FIRST_SYSTEM_ID 40//config:config FIRST_SYSTEM_ID
41//config: int "First valid system uid or gid for adduser and addgroup" 41//config: int "First valid system uid or gid for adduser and addgroup"
@@ -43,7 +43,7 @@
43//config: range 0 LAST_ID 43//config: range 0 LAST_ID
44//config: default 100 44//config: default 100
45//config: help 45//config: help
46//config: First valid system uid or gid for adduser and addgroup 46//config: First valid system uid or gid for adduser and addgroup
47//config: 47//config:
48//config:config LAST_SYSTEM_ID 48//config:config LAST_SYSTEM_ID
49//config: int "Last valid system uid or gid for adduser and addgroup" 49//config: int "Last valid system uid or gid for adduser and addgroup"
@@ -51,7 +51,7 @@
51//config: range FIRST_SYSTEM_ID LAST_ID 51//config: range FIRST_SYSTEM_ID LAST_ID
52//config: default 999 52//config: default 999
53//config: help 53//config: help
54//config: Last valid system uid or gid for adduser and addgroup 54//config: Last valid system uid or gid for adduser and addgroup
55 55
56//applet:IF_ADDUSER(APPLET(adduser, BB_DIR_USR_SBIN, BB_SUID_DROP)) 56//applet:IF_ADDUSER(APPLET(adduser, BB_DIR_USR_SBIN, BB_SUID_DROP))
57 57
diff --git a/loginutils/chpasswd.c b/loginutils/chpasswd.c
index baafd35c8..e390da647 100644
--- a/loginutils/chpasswd.c
+++ b/loginutils/chpasswd.c
@@ -6,18 +6,18 @@
6 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 6 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
7 */ 7 */
8//config:config CHPASSWD 8//config:config CHPASSWD
9//config: bool "chpasswd" 9//config: bool "chpasswd (18 kb)"
10//config: default y 10//config: default y
11//config: help 11//config: help
12//config: Reads a file of user name and password pairs from standard input 12//config: Reads a file of user name and password pairs from standard input
13//config: and uses this information to update a group of existing users. 13//config: and uses this information to update a group of existing users.
14//config: 14//config:
15//config:config FEATURE_DEFAULT_PASSWD_ALGO 15//config:config FEATURE_DEFAULT_PASSWD_ALGO
16//config: string "Default encryption method (passwd -a, cryptpw -m, chpasswd -c ALG)" 16//config: string "Default encryption method (passwd -a, cryptpw -m, chpasswd -c ALG)"
17//config: default "des" 17//config: default "des"
18//config: depends on PASSWD || CRYPTPW || CHPASSWD 18//config: depends on PASSWD || CRYPTPW || CHPASSWD
19//config: help 19//config: help
20//config: Possible choices are "d[es]", "m[d5]", "s[ha256]" or "sha512". 20//config: Possible choices are "d[es]", "m[d5]", "s[ha256]" or "sha512".
21 21
22//applet:IF_CHPASSWD(APPLET(chpasswd, BB_DIR_USR_SBIN, BB_SUID_DROP)) 22//applet:IF_CHPASSWD(APPLET(chpasswd, BB_DIR_USR_SBIN, BB_SUID_DROP))
23 23
diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c
index 3dc8232e0..f8906c59a 100644
--- a/loginutils/cryptpw.c
+++ b/loginutils/cryptpw.c
@@ -10,19 +10,19 @@
10 * Licensed under GPLv2, see file LICENSE in this source tree. 10 * Licensed under GPLv2, see file LICENSE in this source tree.
11 */ 11 */
12//config:config CRYPTPW 12//config:config CRYPTPW
13//config: bool "cryptpw" 13//config: bool "cryptpw (14 kb)"
14//config: default y 14//config: default y
15//config: help 15//config: help
16//config: Encrypts the given password with the crypt(3) libc function 16//config: Encrypts the given password with the crypt(3) libc function
17//config: using the given salt. 17//config: using the given salt.
18//config: 18//config:
19//config:config MKPASSWD 19//config:config MKPASSWD
20//config: bool "mkpasswd" 20//config: bool "mkpasswd (15 kb)"
21//config: default y 21//config: default y
22//config: help 22//config: help
23//config: Encrypts the given password with the crypt(3) libc function 23//config: Encrypts the given password with the crypt(3) libc function
24//config: using the given salt. Debian has this utility under mkpasswd 24//config: using the given salt. Debian has this utility under mkpasswd
25//config: name. Busybox provides mkpasswd as an alias for cryptpw. 25//config: name. Busybox provides mkpasswd as an alias for cryptpw.
26 26
27//applet:IF_CRYPTPW(APPLET(cryptpw, BB_DIR_USR_BIN, BB_SUID_DROP)) 27//applet:IF_CRYPTPW(APPLET(cryptpw, BB_DIR_USR_BIN, BB_SUID_DROP))
28// APPLET_ODDNAME:name main location suid_type help 28// APPLET_ODDNAME:name main location suid_type help
diff --git a/loginutils/deluser.c b/loginutils/deluser.c
index fbb1614fb..3b6bd952d 100644
--- a/loginutils/deluser.c
+++ b/loginutils/deluser.c
@@ -9,24 +9,24 @@
9 * Licensed under GPLv2, see file LICENSE in this source tree. 9 * Licensed under GPLv2, see file LICENSE in this source tree.
10 */ 10 */
11//config:config DELUSER 11//config:config DELUSER
12//config: bool "deluser" 12//config: bool "deluser (8.4 kb)"
13//config: default y 13//config: default y
14//config: help 14//config: help
15//config: Utility for deleting a user account. 15//config: Utility for deleting a user account.
16//config: 16//config:
17//config:config DELGROUP 17//config:config DELGROUP
18//config: bool "delgroup" 18//config: bool "delgroup (5.6 kb)"
19//config: default y 19//config: default y
20//config: help 20//config: help
21//config: Utility for deleting a group account. 21//config: Utility for deleting a group account.
22//config: 22//config:
23//config:config FEATURE_DEL_USER_FROM_GROUP 23//config:config FEATURE_DEL_USER_FROM_GROUP
24//config: bool "Support removing users from groups" 24//config: bool "Support removing users from groups"
25//config: default y 25//config: default y
26//config: depends on DELGROUP 26//config: depends on DELGROUP
27//config: help 27//config: help
28//config: If called with two non-option arguments, deluser 28//config: If called with two non-option arguments, deluser
29//config: or delgroup will remove an user from a specified group. 29//config: or delgroup will remove an user from a specified group.
30 30
31//applet:IF_DELUSER(APPLET(deluser, BB_DIR_USR_SBIN, BB_SUID_DROP)) 31//applet:IF_DELUSER(APPLET(deluser, BB_DIR_USR_SBIN, BB_SUID_DROP))
32//applet:IF_DELGROUP(APPLET_ODDNAME(delgroup, deluser, BB_DIR_USR_SBIN, BB_SUID_DROP, delgroup)) 32//applet:IF_DELGROUP(APPLET_ODDNAME(delgroup, deluser, BB_DIR_USR_SBIN, BB_SUID_DROP, delgroup))
diff --git a/loginutils/getty.c b/loginutils/getty.c
index ba6c784a3..fd5116d08 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -22,23 +22,23 @@
22 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 22 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
23 */ 23 */
24//config:config GETTY 24//config:config GETTY
25//config: bool "getty" 25//config: bool "getty (10 kb)"
26//config: default y 26//config: default y
27//config: select FEATURE_SYSLOG 27//config: select FEATURE_SYSLOG
28//config: help 28//config: help
29//config: getty lets you log in on a tty. It is normally invoked by init. 29//config: getty lets you log in on a tty. It is normally invoked by init.
30//config: 30//config:
31//config: Note that you can save a few bytes by disabling it and 31//config: Note that you can save a few bytes by disabling it and
32//config: using login applet directly. 32//config: using login applet directly.
33//config: If you need to reset tty attributes before calling login, 33//config: If you need to reset tty attributes before calling login,
34//config: this script approximates getty: 34//config: this script approximates getty:
35//config: 35//config:
36//config: exec </dev/$1 >/dev/$1 2>&1 || exit 1 36//config: exec </dev/$1 >/dev/$1 2>&1 || exit 1
37//config: reset 37//config: reset
38//config: stty sane; stty ispeed 38400; stty ospeed 38400 38//config: stty sane; stty ispeed 38400; stty ospeed 38400
39//config: printf "%s login: " "`hostname`" 39//config: printf "%s login: " "`hostname`"
40//config: read -r login 40//config: read -r login
41//config: exec /bin/login "$login" 41//config: exec /bin/login "$login"
42 42
43//applet:IF_GETTY(APPLET(getty, BB_DIR_SBIN, BB_SUID_DROP)) 43//applet:IF_GETTY(APPLET(getty, BB_DIR_SBIN, BB_SUID_DROP))
44 44
diff --git a/loginutils/login.c b/loginutils/login.c
index be05def09..39f703f07 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -3,50 +3,50 @@
3 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5//config:config LOGIN 5//config:config LOGIN
6//config: bool "login" 6//config: bool "login (24 kb)"
7//config: default y 7//config: default y
8//config: select FEATURE_SYSLOG 8//config: select FEATURE_SYSLOG
9//config: help 9//config: help
10//config: login is used when signing onto a system. 10//config: login is used when signing onto a system.
11//config: 11//config:
12//config: Note that Busybox binary must be setuid root for this applet to 12//config: Note that Busybox binary must be setuid root for this applet to
13//config: work properly. 13//config: work properly.
14//config: 14//config:
15//config:config LOGIN_SESSION_AS_CHILD 15//config:config LOGIN_SESSION_AS_CHILD
16//config: bool "Run logged in session in a child process" 16//config: bool "Run logged in session in a child process"
17//config: default y if PAM 17//config: default y if PAM
18//config: depends on LOGIN 18//config: depends on LOGIN
19//config: help 19//config: help
20//config: Run the logged in session in a child process. This allows 20//config: Run the logged in session in a child process. This allows
21//config: login to clean up things such as utmp entries or PAM sessions 21//config: login to clean up things such as utmp entries or PAM sessions
22//config: when the login session is complete. If you use PAM, you 22//config: when the login session is complete. If you use PAM, you
23//config: almost always would want this to be set to Y, else PAM session 23//config: almost always would want this to be set to Y, else PAM session
24//config: will not be cleaned up. 24//config: will not be cleaned up.
25//config: 25//config:
26//config:config LOGIN_SCRIPTS 26//config:config LOGIN_SCRIPTS
27//config: bool "Support login scripts" 27//config: bool "Support login scripts"
28//config: depends on LOGIN 28//config: depends on LOGIN
29//config: default y 29//config: default y
30//config: help 30//config: help
31//config: Enable this if you want login to execute $LOGIN_PRE_SUID_SCRIPT 31//config: Enable this if you want login to execute $LOGIN_PRE_SUID_SCRIPT
32//config: just prior to switching from root to logged-in user. 32//config: just prior to switching from root to logged-in user.
33//config: 33//config:
34//config:config FEATURE_NOLOGIN 34//config:config FEATURE_NOLOGIN
35//config: bool "Support /etc/nologin" 35//config: bool "Support /etc/nologin"
36//config: default y 36//config: default y
37//config: depends on LOGIN 37//config: depends on LOGIN
38//config: help 38//config: help
39//config: The file /etc/nologin is used by (some versions of) login(1). 39//config: The file /etc/nologin is used by (some versions of) login(1).
40//config: If it exists, non-root logins are prohibited. 40//config: If it exists, non-root logins are prohibited.
41//config: 41//config:
42//config:config FEATURE_SECURETTY 42//config:config FEATURE_SECURETTY
43//config: bool "Support /etc/securetty" 43//config: bool "Support /etc/securetty"
44//config: default y 44//config: default y
45//config: depends on LOGIN 45//config: depends on LOGIN
46//config: help 46//config: help
47//config: The file /etc/securetty is used by (some versions of) login(1). 47//config: The file /etc/securetty is used by (some versions of) login(1).
48//config: The file contains the device names of tty lines (one per line, 48//config: The file contains the device names of tty lines (one per line,
49//config: without leading /dev/) on which root is allowed to login. 49//config: without leading /dev/) on which root is allowed to login.
50 50
51//applet:/* Needs to be run by root or be suid root - needs to change uid and gid: */ 51//applet:/* Needs to be run by root or be suid root - needs to change uid and gid: */
52//applet:IF_LOGIN(APPLET(login, BB_DIR_BIN, BB_SUID_REQUIRE)) 52//applet:IF_LOGIN(APPLET(login, BB_DIR_BIN, BB_SUID_REQUIRE))
diff --git a/loginutils/passwd.c b/loginutils/passwd.c
index b7b7423fd..03f8ad0a4 100644
--- a/loginutils/passwd.c
+++ b/loginutils/passwd.c
@@ -3,24 +3,24 @@
3 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
4 */ 4 */
5//config:config PASSWD 5//config:config PASSWD
6//config: bool "passwd" 6//config: bool "passwd (21 kb)"
7//config: default y 7//config: default y
8//config: select FEATURE_SYSLOG 8//config: select FEATURE_SYSLOG
9//config: help 9//config: help
10//config: passwd changes passwords for user and group accounts. A normal user 10//config: passwd changes passwords for user and group accounts. A normal user
11//config: may only change the password for his/her own account, the super user 11//config: may only change the password for his/her own account, the super user
12//config: may change the password for any account. The administrator of a group 12//config: may change the password for any account. The administrator of a group
13//config: may change the password for the group. 13//config: may change the password for the group.
14//config: 14//config:
15//config: Note that Busybox binary must be setuid root for this applet to 15//config: Note that Busybox binary must be setuid root for this applet to
16//config: work properly. 16//config: work properly.
17//config: 17//config:
18//config:config FEATURE_PASSWD_WEAK_CHECK 18//config:config FEATURE_PASSWD_WEAK_CHECK
19//config: bool "Check new passwords for weakness" 19//config: bool "Check new passwords for weakness"
20//config: default y 20//config: default y
21//config: depends on PASSWD 21//config: depends on PASSWD
22//config: help 22//config: help
23//config: With this option passwd will refuse new passwords which are "weak". 23//config: With this option passwd will refuse new passwords which are "weak".
24 24
25//applet:/* Needs to be run by root or be suid root - needs to change /etc/{passwd,shadow}: */ 25//applet:/* Needs to be run by root or be suid root - needs to change /etc/{passwd,shadow}: */
26//applet:IF_PASSWD(APPLET(passwd, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) 26//applet:IF_PASSWD(APPLET(passwd, BB_DIR_USR_BIN, BB_SUID_REQUIRE))
diff --git a/loginutils/su.c b/loginutils/su.c
index 4cce82405..41291ea8f 100644
--- a/loginutils/su.c
+++ b/loginutils/su.c
@@ -5,14 +5,14 @@
5 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 5 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 */ 6 */
7//config:config SU 7//config:config SU
8//config: bool "su" 8//config: bool "su (19 kb)"
9//config: default y 9//config: default y
10//config: select FEATURE_SYSLOG 10//config: select FEATURE_SYSLOG
11//config: help 11//config: help
12//config: su is used to become another user during a login session. 12//config: su is used to become another user during a login session.
13//config: Invoked without a username, su defaults to becoming the super user. 13//config: Invoked without a username, su defaults to becoming the super user.
14//config: Note that busybox binary must be setuid root for this applet to 14//config: Note that busybox binary must be setuid root for this applet to
15//config: work properly. 15//config: work properly.
16//config: 16//config:
17//config:config FEATURE_SU_SYSLOG 17//config:config FEATURE_SU_SYSLOG
18//config: bool "Log to syslog all attempts to use su" 18//config: bool "Log to syslog all attempts to use su"
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c
index 2e32e2bbd..d5a463cac 100644
--- a/loginutils/sulogin.c
+++ b/loginutils/sulogin.c
@@ -5,12 +5,12 @@
5 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 5 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 */ 6 */
7//config:config SULOGIN 7//config:config SULOGIN
8//config: bool "sulogin" 8//config: bool "sulogin (17 kb)"
9//config: default y 9//config: default y
10//config: select FEATURE_SYSLOG 10//config: select FEATURE_SYSLOG
11//config: help 11//config: help
12//config: sulogin is invoked when the system goes into single user 12//config: sulogin is invoked when the system goes into single user
13//config: mode (this is done through an entry in inittab). 13//config: mode (this is done through an entry in inittab).
14 14
15//applet:IF_SULOGIN(APPLET(sulogin, BB_DIR_SBIN, BB_SUID_DROP)) 15//applet:IF_SULOGIN(APPLET(sulogin, BB_DIR_SBIN, BB_SUID_DROP))
16 16
diff --git a/loginutils/vlock.c b/loginutils/vlock.c
index 5ba6a8780..f22abd3aa 100644
--- a/loginutils/vlock.c
+++ b/loginutils/vlock.c
@@ -16,13 +16,13 @@
16 * It now works with md5, sha1, etc passwords. 16 * It now works with md5, sha1, etc passwords.
17 */ 17 */
18//config:config VLOCK 18//config:config VLOCK
19//config: bool "vlock" 19//config: bool "vlock (17 kb)"
20//config: default y 20//config: default y
21//config: help 21//config: help
22//config: Build the "vlock" applet which allows you to lock (virtual) terminals. 22//config: Build the "vlock" applet which allows you to lock (virtual) terminals.
23//config: 23//config:
24//config: Note that Busybox binary must be setuid root for this applet to 24//config: Note that Busybox binary must be setuid root for this applet to
25//config: work properly. 25//config: work properly.
26 26
27//applet:/* Needs to be run by root or be suid root - needs to change uid and gid: */ 27//applet:/* Needs to be run by root or be suid root - needs to change uid and gid: */
28//applet:IF_VLOCK(APPLET(vlock, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) 28//applet:IF_VLOCK(APPLET(vlock, BB_DIR_USR_BIN, BB_SUID_REQUIRE))