Initial public busybox upstream commit
[busybox4maemo] / loginutils / Config.in
1 #
2 # For a description of the syntax of this configuration file,
3 # see scripts/kbuild/config-language.txt.
4 #
5
6 menu "Login/Password Management Utilities"
7
8 config FEATURE_SHADOWPASSWDS
9         bool "Support for shadow passwords"
10         default n
11         help
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
14           publicly readable.
15
16 config USE_BB_SHADOW
17         bool "Use busybox shadow password functions"
18         default y
19         depends on USE_BB_PWD_GRP && FEATURE_SHADOWPASSWDS
20         help
21             If you leave this disabled, busybox will use the system's shadow
22             password handling 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 shadow password 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/shadow file when handling shadow passwords.  This
30             makes your system smaller and I will get fewer emails asking about
31             how glibc NSS works).  When this option is enabled, you will not be
32             able to use PAM to access shadow passwords from remote LDAP
33             password servers and whatnot.
34
35 config USE_BB_PWD_GRP
36         bool "Use internal password and group functions rather than system functions"
37         default n
38         help
39             If you leave this disabled, busybox will use the system's password
40             and group functions.  And if you are using the GNU C library
41             (glibc), you will then need to install the /etc/nsswitch.conf
42             configuration file and the required /lib/libnss_* libraries in
43             order for the password and group functions to work.  This generally
44             makes your embedded system quite a bit larger.
45
46             Enabling this option will cause busybox to directly access the
47             system's /etc/password, /etc/group files (and your system will be
48             smaller, and I will get fewer emails asking about how glibc NSS
49             works).  When this option is enabled, you will not be able to use
50             PAM to access remote LDAP password servers and whatnot.  And if you
51             want hostname resolution to work with glibc, you still need the
52             /lib/libnss_* libraries.
53
54             If you enable this option, it will add about 1.5k to busybox.
55
56 config ADDGROUP
57         bool "addgroup"
58         default n
59         help
60           Utility for creating a new group account.
61
62 config FEATURE_ADDUSER_TO_GROUP
63         bool "Support for adding users to groups"
64         default n
65         depends on ADDGROUP
66         help
67           If  called  with two non-option arguments,
68           addgroup will add an existing user to an
69           existing group.
70
71 config DELGROUP
72         bool "delgroup"
73         default n
74         help
75           Utility for deleting a group account.
76
77 config FEATURE_DEL_USER_FROM_GROUP
78         bool "Support for removing users from groups."
79         default n
80         depends on DELGROUP
81         help
82           If called with two non-option arguments, deluser
83           or delgroup will remove an user from a specified group.
84
85 config FEATURE_CHECK_NAMES
86         bool "Enable sanity check on user/group names in adduser and addgroup"
87         default n
88         depends on ADDUSER || ADDGROUP
89         help
90           Enable sanity check on user and group names in adduser and addgroup.
91           To avoid problems, the user or group name should consist only of
92           letters, digits, underscores, periods, at signs and dashes,
93           and not start with a dash (as defined by IEEE Std 1003.1-2001).
94           For compatibility with Samba machine accounts "$" is also supported
95           at the end of the user or group name.
96
97 config ADDUSER
98         bool "adduser"
99         default n
100         help
101           Utility for creating a new user account.
102
103 config FEATURE_ADDUSER_LONG_OPTIONS
104         bool "Enable long options"
105         default n
106         depends on ADDUSER && GETOPT_LONG
107         help
108           Support long options for the adduser applet.
109
110 config DELUSER
111         bool "deluser"
112         default n
113         help
114           Utility for deleting a user account.
115
116 config GETTY
117         bool "getty"
118         default n
119         select FEATURE_SYSLOG
120         help
121           getty lets you log in on a tty, it is normally invoked by init.
122
123 config FEATURE_UTMP
124         bool "Support utmp file"
125         depends on GETTY || LOGIN || SU || WHO
126         default n
127         help
128           The file /var/run/utmp is used to track who is currently logged in.
129
130 config FEATURE_WTMP
131         bool "Support wtmp file"
132         depends on GETTY || LOGIN || SU || LAST
133         default n
134         select FEATURE_UTMP
135         help
136           The file /var/run/wtmp is used to track when user's have logged into
137           and logged out of the system.
138
139 config LOGIN
140         bool "login"
141         default n
142         select FEATURE_SUID
143         select FEATURE_SYSLOG
144         help
145           login is used when signing onto a system.
146
147           Note that Busybox binary must be setuid root for this applet to
148           work properly.
149
150 config PAM
151         bool "Support for PAM (Pluggable Authentication Modules)"
152         default n
153         depends on LOGIN
154         help
155           Use PAM in login(1) instead of direct access to password database.
156
157 config LOGIN_SCRIPTS
158         bool "Support for login scripts"
159         depends on LOGIN
160         default n
161         help
162           Enable this if you want login to execute $LOGIN_PRE_SUID_SCRIPT
163           just prior to switching from root to logged-in user.
164
165 config FEATURE_NOLOGIN
166         bool "Support for /etc/nologin"
167         default y
168         depends on LOGIN
169         help
170           The file /etc/nologin is used by (some versions of) login(1).
171           If it exists, non-root logins are prohibited.
172
173 config FEATURE_SECURETTY
174         bool "Support for /etc/securetty"
175         default y
176         depends on LOGIN
177         help
178           The file /etc/securetty is used by (some versions of) login(1).
179           The file contains the device names of tty lines (one per line,
180           without leading /dev/) on which root is allowed to login.
181
182 config PASSWD
183         bool "passwd"
184         default n
185         select FEATURE_SUID
186         select FEATURE_SYSLOG
187         help
188           passwd changes passwords for user and group accounts.  A normal user
189           may only change the password for his/her own account, the super user
190           may change the password for any account.  The administrator of a group
191           may change the password for the group.
192
193           Note that Busybox binary must be setuid root for this applet to
194           work properly.
195
196 config FEATURE_PASSWD_WEAK_CHECK
197         bool "Check new passwords for weakness"
198         default y
199         depends on PASSWD
200         help
201           With this option passwd will refuse new passwords which are "weak".
202
203 config CRYPTPW
204         bool "cryptpw"
205         default n
206         help
207           Applet for crypting a string.
208
209 config CHPASSWD
210        bool "chpasswd"
211        default n
212        help
213          chpasswd  reads  a  file  of user name and password pairs from
214          standard input and uses this information to update a group of
215          existing users.
216
217 config SU
218         bool "su"
219         default n
220         select FEATURE_SUID
221         select FEATURE_SYSLOG
222         help
223           su is used to become another user during a login session.
224           Invoked without a username, su defaults to becoming the super user.
225
226           Note that Busybox binary must be setuid root for this applet to
227           work properly.
228
229 config FEATURE_SU_SYSLOG
230         bool "Enable su to write to syslog"
231         default y
232         depends on SU
233
234 config FEATURE_SU_CHECKS_SHELLS
235         bool "Enable su to check user's shell to be listed in /etc/shells"
236         depends on SU
237         default y
238
239 config SULOGIN
240         bool "sulogin"
241         default n
242         select FEATURE_SYSLOG
243         help
244           sulogin is invoked when the system goes into single user
245           mode (this is done through an entry in inittab).
246
247 config VLOCK
248         bool "vlock"
249         default n
250         select FEATURE_SUID
251         help
252           Build the "vlock" applet which allows you to lock (virtual) terminals.
253
254           Note that Busybox binary must be setuid root for this applet to
255           work properly.
256
257 endmenu
258