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