librecmc : Bump to v1.5.15
[librecmc/librecmc.git] / package / utils / busybox / config / loginutils / Config.in
1 # DO NOT EDIT. This file is generated from Config.src
2 #
3 # For a description of the syntax of this configuration file,
4 # see docs/Kconfig-language.txt.
5 #
6
7 menu "Login/Password Management Utilities"
8
9 config BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS
10         bool "Support shadow passwords"
11         default BUSYBOX_DEFAULT_FEATURE_SHADOWPASSWDS
12         help
13         Build support for shadow password in /etc/shadow. This file is only
14         readable by root and thus the encrypted passwords are no longer
15         publicly readable.
16
17 config BUSYBOX_CONFIG_USE_BB_PWD_GRP
18         bool "Use internal password and group functions rather than system functions"
19         default BUSYBOX_DEFAULT_USE_BB_PWD_GRP
20         help
21         If you leave this disabled, busybox will use the system's password
22         and group functions. And if you are using the GNU C library
23         (glibc), you will then need to install the /etc/nsswitch.conf
24         configuration file and the required /lib/libnss_* libraries in
25         order for the password and group functions to work. This generally
26         makes your embedded system quite a bit larger.
27
28         Enabling this option will cause busybox to directly access the
29         system's /etc/password, /etc/group files (and your system will be
30         smaller, and I will get fewer emails asking about how glibc NSS
31         works). When this option is enabled, you will not be able to use
32         PAM to access remote LDAP password servers and whatnot. And if you
33         want hostname resolution to work with glibc, you still need the
34         /lib/libnss_* libraries.
35
36         If you need to use glibc's nsswitch.conf mechanism
37         (e.g. if user/group database is NOT stored in /etc/passwd etc),
38         you must NOT use this option.
39
40         If you enable this option, it will add about 1.5k.
41
42 config BUSYBOX_CONFIG_USE_BB_SHADOW
43         bool "Use internal shadow password functions"
44         default BUSYBOX_DEFAULT_USE_BB_SHADOW
45         depends on BUSYBOX_CONFIG_USE_BB_PWD_GRP && BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS
46         help
47         If you leave this disabled, busybox will use the system's shadow
48         password handling functions. And if you are using the GNU C library
49         (glibc), you will then need to install the /etc/nsswitch.conf
50         configuration file and the required /lib/libnss_* libraries in
51         order for the shadow password functions to work. This generally
52         makes your embedded system quite a bit larger.
53
54         Enabling this option will cause busybox to directly access the
55         system's /etc/shadow file when handling shadow passwords. This
56         makes your system smaller (and I will get fewer emails asking about
57         how glibc NSS works). When this option is enabled, you will not be
58         able to use PAM to access shadow passwords from remote LDAP
59         password servers and whatnot.
60
61 config BUSYBOX_CONFIG_USE_BB_CRYPT
62         bool "Use internal crypt functions"
63         default BUSYBOX_DEFAULT_USE_BB_CRYPT
64         help
65         Busybox has internal DES and MD5 crypt functions.
66         They produce results which are identical to corresponding
67         standard C library functions.
68
69         If you leave this disabled, busybox will use the system's
70         crypt functions. Most C libraries use large (~70k)
71         static buffers there, and also combine them with more general
72         DES encryption/decryption.
73
74         For busybox, having large static buffers is undesirable,
75         especially on NOMMU machines. Busybox also doesn't need
76         DES encryption/decryption and can do with smaller code.
77
78         If you enable this option, it will add about 4.8k of code
79         if you are building dynamically linked executable.
80         In static build, it makes code _smaller_ by about 1.2k,
81         and likely many kilobytes less of bss.
82
83 config BUSYBOX_CONFIG_USE_BB_CRYPT_SHA
84         bool "Enable SHA256/512 crypt functions"
85         default BUSYBOX_DEFAULT_USE_BB_CRYPT_SHA
86         depends on BUSYBOX_CONFIG_USE_BB_CRYPT
87         help
88         Enable this if you have passwords starting with "$5$" or "$6$"
89         in your /etc/passwd or /etc/shadow files. These passwords
90         are hashed using SHA256 and SHA512 algorithms. Support for them
91         was added to glibc in 2008.
92         With this option off, login will fail password check for any
93         user which has password encrypted with these algorithms.
94
95 config BUSYBOX_CONFIG_ADD_SHELL
96         bool "add-shell (3.1 kb)"
97         default BUSYBOX_DEFAULT_ADD_SHELL if BUSYBOX_CONFIG_DESKTOP
98         help
99         Add shells to /etc/shells.
100
101 config BUSYBOX_CONFIG_REMOVE_SHELL
102         bool "remove-shell (3 kb)"
103         default BUSYBOX_DEFAULT_REMOVE_SHELL if BUSYBOX_CONFIG_DESKTOP
104         help
105         Remove shells from /etc/shells.
106 config BUSYBOX_CONFIG_ADDGROUP
107         bool "addgroup (8.6 kb)"
108         default BUSYBOX_DEFAULT_ADDGROUP
109         select BUSYBOX_CONFIG_LONG_OPTS
110         help
111         Utility for creating a new group account.
112
113 config BUSYBOX_CONFIG_FEATURE_ADDUSER_TO_GROUP
114         bool "Support adding users to groups"
115         default BUSYBOX_DEFAULT_FEATURE_ADDUSER_TO_GROUP
116         depends on BUSYBOX_CONFIG_ADDGROUP
117         help
118         If called with two non-option arguments,
119         addgroup will add an existing user to an
120         existing group.
121 config BUSYBOX_CONFIG_ADDUSER
122         bool "adduser (15 kb)"
123         default BUSYBOX_DEFAULT_ADDUSER
124         select BUSYBOX_CONFIG_LONG_OPTS
125         help
126         Utility for creating a new user account.
127
128 config BUSYBOX_CONFIG_FEATURE_CHECK_NAMES
129         bool "Enable sanity check on user/group names in adduser and addgroup"
130         default BUSYBOX_DEFAULT_FEATURE_CHECK_NAMES
131         depends on BUSYBOX_CONFIG_ADDUSER || BUSYBOX_CONFIG_ADDGROUP
132         help
133         Enable sanity check on user and group names in adduser and addgroup.
134         To avoid problems, the user or group name should consist only of
135         letters, digits, underscores, periods, at signs and dashes,
136         and not start with a dash (as defined by IEEE Std 1003.1-2001).
137         For compatibility with Samba machine accounts "$" is also supported
138         at the end of the user or group name.
139
140 config BUSYBOX_CONFIG_LAST_ID
141         int "Last valid uid or gid for adduser and addgroup"
142         depends on BUSYBOX_CONFIG_ADDUSER || BUSYBOX_CONFIG_ADDGROUP
143         default BUSYBOX_DEFAULT_LAST_ID
144         help
145         Last valid uid or gid for adduser and addgroup
146
147 config BUSYBOX_CONFIG_FIRST_SYSTEM_ID
148         int "First valid system uid or gid for adduser and addgroup"
149         depends on BUSYBOX_CONFIG_ADDUSER || BUSYBOX_CONFIG_ADDGROUP
150         range 0 BUSYBOX_CONFIG_LAST_ID
151         default BUSYBOX_DEFAULT_FIRST_SYSTEM_ID
152         help
153         First valid system uid or gid for adduser and addgroup
154
155 config BUSYBOX_CONFIG_LAST_SYSTEM_ID
156         int "Last valid system uid or gid for adduser and addgroup"
157         depends on BUSYBOX_CONFIG_ADDUSER || BUSYBOX_CONFIG_ADDGROUP
158         range BUSYBOX_CONFIG_FIRST_SYSTEM_ID BUSYBOX_CONFIG_LAST_ID
159         default BUSYBOX_DEFAULT_LAST_SYSTEM_ID
160         help
161         Last valid system uid or gid for adduser and addgroup
162 config BUSYBOX_CONFIG_CHPASSWD
163         bool "chpasswd (18 kb)"
164         default BUSYBOX_DEFAULT_CHPASSWD
165         help
166         Reads a file of user name and password pairs from standard input
167         and uses this information to update a group of existing users.
168
169 config BUSYBOX_CONFIG_FEATURE_DEFAULT_PASSWD_ALGO
170         string "Default encryption method (passwd -a, cryptpw -m, chpasswd -c ALG)"
171         default BUSYBOX_DEFAULT_FEATURE_DEFAULT_PASSWD_ALGO
172         depends on BUSYBOX_CONFIG_PASSWD || BUSYBOX_CONFIG_CRYPTPW || BUSYBOX_CONFIG_CHPASSWD
173         help
174         Possible choices are "d[es]", "m[d5]", "s[ha256]" or "sha512".
175 config BUSYBOX_CONFIG_CRYPTPW
176         bool "cryptpw (14 kb)"
177         default BUSYBOX_DEFAULT_CRYPTPW
178         help
179         Encrypts the given password with the crypt(3) libc function
180         using the given salt.
181
182 config BUSYBOX_CONFIG_MKPASSWD
183         bool "mkpasswd (15 kb)"
184         default BUSYBOX_DEFAULT_MKPASSWD
185         help
186         Encrypts the given password with the crypt(3) libc function
187         using the given salt. Debian has this utility under mkpasswd
188         name. Busybox provides mkpasswd as an alias for cryptpw.
189 config BUSYBOX_CONFIG_DELUSER
190         bool "deluser (9.1 kb)"
191         default BUSYBOX_DEFAULT_DELUSER
192         help
193         Utility for deleting a user account.
194
195 config BUSYBOX_CONFIG_DELGROUP
196         bool "delgroup (6.4 kb)"
197         default BUSYBOX_DEFAULT_DELGROUP
198         help
199         Utility for deleting a group account.
200
201 config BUSYBOX_CONFIG_FEATURE_DEL_USER_FROM_GROUP
202         bool "Support removing users from groups"
203         default BUSYBOX_DEFAULT_FEATURE_DEL_USER_FROM_GROUP
204         depends on BUSYBOX_CONFIG_DELGROUP
205         help
206         If called with two non-option arguments, deluser
207         or delgroup will remove an user from a specified group.
208 config BUSYBOX_CONFIG_GETTY
209         bool "getty (10 kb)"
210         default BUSYBOX_DEFAULT_GETTY
211         select BUSYBOX_CONFIG_FEATURE_SYSLOG
212         help
213         getty lets you log in on a tty. It is normally invoked by init.
214
215         Note that you can save a few bytes by disabling it and
216         using login applet directly.
217         If you need to reset tty attributes before calling login,
218         this script approximates getty:
219
220         exec </dev/$1 >/dev/$1 2>&1 || exit 1
221         reset
222         stty sane; stty ispeed 38400; stty ospeed 38400
223         printf "%s login: " "`hostname`"
224         read -r login
225         exec /bin/login "$login"
226 config BUSYBOX_CONFIG_LOGIN
227         bool "login (24 kb)"
228         default BUSYBOX_DEFAULT_LOGIN
229         select BUSYBOX_CONFIG_FEATURE_SYSLOG
230         help
231         login is used when signing onto a system.
232
233         Note that busybox binary must be setuid root for this applet to
234         work properly.
235
236 config BUSYBOX_CONFIG_LOGIN_SESSION_AS_CHILD
237         bool "Run logged in session in a child process"
238         default BUSYBOX_DEFAULT_LOGIN_SESSION_AS_CHILD if BUSYBOX_CONFIG_PAM
239         depends on BUSYBOX_CONFIG_LOGIN
240         help
241         Run the logged in session in a child process.  This allows
242         login to clean up things such as utmp entries or PAM sessions
243         when the login session is complete.  If you use PAM, you
244         almost always would want this to be set to Y, else PAM session
245         will not be cleaned up.
246
247 config BUSYBOX_CONFIG_LOGIN_SCRIPTS
248         bool "Support login scripts"
249         depends on BUSYBOX_CONFIG_LOGIN
250         default BUSYBOX_DEFAULT_LOGIN_SCRIPTS
251         help
252         Enable this if you want login to execute $LOGIN_PRE_SUID_SCRIPT
253         just prior to switching from root to logged-in user.
254
255 config BUSYBOX_CONFIG_FEATURE_NOLOGIN
256         bool "Support /etc/nologin"
257         default BUSYBOX_DEFAULT_FEATURE_NOLOGIN
258         depends on BUSYBOX_CONFIG_LOGIN
259         help
260         The file /etc/nologin is used by (some versions of) login(1).
261         If it exists, non-root logins are prohibited.
262
263 config BUSYBOX_CONFIG_FEATURE_SECURETTY
264         bool "Support /etc/securetty"
265         default BUSYBOX_DEFAULT_FEATURE_SECURETTY
266         depends on BUSYBOX_CONFIG_LOGIN
267         help
268         The file /etc/securetty is used by (some versions of) login(1).
269         The file contains the device names of tty lines (one per line,
270         without leading /dev/) on which root is allowed to login.
271 config BUSYBOX_CONFIG_PASSWD
272         bool "passwd (21 kb)"
273         default BUSYBOX_DEFAULT_PASSWD
274         select BUSYBOX_CONFIG_FEATURE_SYSLOG
275         help
276         passwd changes passwords for user and group accounts. A normal user
277         may only change the password for his/her own account, the super user
278         may change the password for any account. The administrator of a group
279         may change the password for the group.
280
281         Note that busybox binary must be setuid root for this applet to
282         work properly.
283
284 config BUSYBOX_CONFIG_FEATURE_PASSWD_WEAK_CHECK
285         bool "Check new passwords for weakness"
286         default BUSYBOX_DEFAULT_FEATURE_PASSWD_WEAK_CHECK
287         depends on BUSYBOX_CONFIG_PASSWD
288         help
289         With this option passwd will refuse new passwords which are "weak".
290 config BUSYBOX_CONFIG_SU
291         bool "su (19 kb)"
292         default BUSYBOX_DEFAULT_SU
293         select BUSYBOX_CONFIG_FEATURE_SYSLOG
294         help
295         su is used to become another user during a login session.
296         Invoked without a username, su defaults to becoming the super user.
297         Note that busybox binary must be setuid root for this applet to
298         work properly.
299
300 config BUSYBOX_CONFIG_FEATURE_SU_SYSLOG
301         bool "Log to syslog all attempts to use su"
302         default BUSYBOX_DEFAULT_FEATURE_SU_SYSLOG
303         depends on BUSYBOX_CONFIG_SU
304
305 config BUSYBOX_CONFIG_FEATURE_SU_CHECKS_SHELLS
306         bool "If user's shell is not in /etc/shells, disallow -s PROG"
307         default BUSYBOX_DEFAULT_FEATURE_SU_CHECKS_SHELLS
308         depends on BUSYBOX_CONFIG_SU
309
310 config BUSYBOX_CONFIG_FEATURE_SU_BLANK_PW_NEEDS_SECURE_TTY
311         bool "Allow blank passwords only on TTYs in /etc/securetty"
312         default BUSYBOX_DEFAULT_FEATURE_SU_BLANK_PW_NEEDS_SECURE_TTY
313         depends on BUSYBOX_CONFIG_SU
314 config BUSYBOX_CONFIG_SULOGIN
315         bool "sulogin (17 kb)"
316         default BUSYBOX_DEFAULT_SULOGIN
317         select BUSYBOX_CONFIG_FEATURE_SYSLOG
318         help
319         sulogin is invoked when the system goes into single user
320         mode (this is done through an entry in inittab).
321 config BUSYBOX_CONFIG_VLOCK
322         bool "vlock (17 kb)"
323         default BUSYBOX_DEFAULT_VLOCK
324         help
325         Build the "vlock" applet which allows you to lock (virtual) terminals.
326
327         Note that busybox binary must be setuid root for this applet to
328         work properly.
329
330 endmenu