Config.in 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see scripts/kbuild/config-language.txt.
  4. #
  5. menu "Login/Password Management Utilities"
  6. config BUSYBOX_FEATURE_SHADOWPASSWDS
  7. bool "Support for shadow passwords"
  8. default y
  9. help
  10. Build support for shadow password in /etc/shadow. This file is only
  11. readable by root and thus the encrypted passwords are no longer
  12. publicly readable.
  13. config BUSYBOX_USE_BB_PWD_GRP
  14. bool "Use internal password and group functions rather than system functions"
  15. default y
  16. help
  17. If you leave this disabled, busybox will use the system's password
  18. and group functions. And if you are using the GNU C library
  19. (glibc), you will then need to install the /etc/nsswitch.conf
  20. configuration file and the required /lib/libnss_* libraries in
  21. order for the password and group functions to work. This generally
  22. makes your embedded system quite a bit larger.
  23. Enabling this option will cause busybox to directly access the
  24. system's /etc/password, /etc/group files (and your system will be
  25. smaller, and I will get fewer emails asking about how glibc NSS
  26. works). When this option is enabled, you will not be able to use
  27. PAM to access remote LDAP password servers and whatnot. And if you
  28. want hostname resolution to work with glibc, you still need the
  29. /lib/libnss_* libraries.
  30. If you need to use glibc's nsswitch.conf mechanism
  31. (e.g. if user/group database is NOT stored in /etc/passwd etc),
  32. you must NOT use this option.
  33. If you enable this option, it will add about 1.5k.
  34. config BUSYBOX_USE_BB_SHADOW
  35. bool "Use internal shadow password functions"
  36. default y
  37. depends on BUSYBOX_USE_BB_PWD_GRP && BUSYBOX_FEATURE_SHADOWPASSWDS
  38. help
  39. If you leave this disabled, busybox will use the system's shadow
  40. password handling 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 shadow password functions to work. This generally
  44. makes your embedded system quite a bit larger.
  45. Enabling this option will cause busybox to directly access the
  46. system's /etc/shadow file when handling shadow passwords. This
  47. makes your system smaller (and I will get fewer emails asking about
  48. how glibc NSS works). When this option is enabled, you will not be
  49. able to use PAM to access shadow passwords from remote LDAP
  50. password servers and whatnot.
  51. config BUSYBOX_USE_BB_CRYPT
  52. bool "Use internal DES and MD5 crypt functions"
  53. default y
  54. help
  55. Busybox has internal DES and MD5 crypt functions.
  56. They produce results which are identical to corresponding
  57. standard C library functions.
  58. If you leave this disabled, busybox will use the system's
  59. crypt functions. Most C libraries use large (~70k)
  60. static buffers there, and also combine them with more general
  61. DES encryption/decryption.
  62. For busybox, having large static buffers is undesirable,
  63. especially on NOMMU machines. Busybox also doesn't need
  64. DES encryption/decryption and can do with smaller code.
  65. If you enable this option, it will add about 4.8k of code
  66. if you are building dynamically linked executable.
  67. In static build, it makes code _smaller_ by about 1.2k,
  68. and likely many kilobytes less of bss.
  69. config BUSYBOX_ADDGROUP
  70. bool "addgroup"
  71. default y
  72. help
  73. Utility for creating a new group account.
  74. config BUSYBOX_FEATURE_ADDUSER_TO_GROUP
  75. bool "Support for adding users to groups"
  76. default n
  77. depends on BUSYBOX_ADDGROUP
  78. help
  79. If called with two non-option arguments,
  80. addgroup will add an existing user to an
  81. existing group.
  82. config BUSYBOX_DELGROUP
  83. bool "delgroup"
  84. default y
  85. help
  86. Utility for deleting a group account.
  87. config BUSYBOX_FEATURE_DEL_USER_FROM_GROUP
  88. bool "Support for removing users from groups"
  89. default n
  90. depends on BUSYBOX_DELGROUP
  91. help
  92. If called with two non-option arguments, deluser
  93. or delgroup will remove an user from a specified group.
  94. config BUSYBOX_FEATURE_CHECK_NAMES
  95. bool "Enable sanity check on user/group names in adduser and addgroup"
  96. default n
  97. depends on BUSYBOX_ADDUSER || BUSYBOX_ADDGROUP
  98. help
  99. Enable sanity check on user and group names in adduser and addgroup.
  100. To avoid problems, the user or group name should consist only of
  101. letters, digits, underscores, periods, at signs and dashes,
  102. and not start with a dash (as defined by IEEE Std 1003.1-2001).
  103. For compatibility with Samba machine accounts "$" is also supported
  104. at the end of the user or group name.
  105. config BUSYBOX_ADDUSER
  106. bool "adduser"
  107. default y
  108. help
  109. Utility for creating a new user account.
  110. config BUSYBOX_FEATURE_ADDUSER_LONG_OPTIONS
  111. bool "Enable long options"
  112. default n
  113. depends on BUSYBOX_ADDUSER && BUSYBOX_GETOPT_LONG
  114. help
  115. Support long options for the adduser applet.
  116. config BUSYBOX_DELUSER
  117. bool "deluser"
  118. default y
  119. help
  120. Utility for deleting a user account.
  121. config BUSYBOX_GETTY
  122. bool "getty"
  123. default y
  124. select BUSYBOX_FEATURE_SYSLOG
  125. help
  126. getty lets you log in on a tty, it is normally invoked by init.
  127. config BUSYBOX_FEATURE_UTMP
  128. bool "Support utmp file"
  129. depends on BUSYBOX_GETTY || BUSYBOX_LOGIN || BUSYBOX_SU || BUSYBOX_WHO
  130. default y
  131. help
  132. The file /var/run/utmp is used to track who is currently logged in.
  133. config BUSYBOX_FEATURE_WTMP
  134. bool "Support wtmp file"
  135. depends on BUSYBOX_GETTY || BUSYBOX_LOGIN || BUSYBOX_SU || BUSYBOX_LAST
  136. default y
  137. select BUSYBOX_FEATURE_UTMP
  138. help
  139. The file /var/run/wtmp is used to track when user's have logged into
  140. and logged out of the system.
  141. config BUSYBOX_LOGIN
  142. bool "login"
  143. default y
  144. select BUSYBOX_FEATURE_SUID
  145. select BUSYBOX_FEATURE_SYSLOG
  146. help
  147. login is used when signing onto a system.
  148. Note that Busybox binary must be setuid root for this applet to
  149. work properly.
  150. #config BUSYBOX_PAM
  151. # bool "Support for PAM (Pluggable Authentication Modules)"
  152. # default n
  153. # depends on BUSYBOX_LOGIN
  154. # help
  155. # Use PAM in login(1) instead of direct access to password database.
  156. config BUSYBOX_LOGIN_SCRIPTS
  157. bool "Support for login scripts"
  158. depends on BUSYBOX_LOGIN
  159. default n
  160. help
  161. Enable this if you want login to execute $LOGIN_PRE_SUID_SCRIPT
  162. just prior to switching from root to logged-in user.
  163. config BUSYBOX_FEATURE_NOLOGIN
  164. bool "Support for /etc/nologin"
  165. default y
  166. depends on BUSYBOX_LOGIN
  167. help
  168. The file /etc/nologin is used by (some versions of) login(1).
  169. If it exists, non-root logins are prohibited.
  170. config BUSYBOX_FEATURE_SECURETTY
  171. bool "Support for /etc/securetty"
  172. default y
  173. depends on BUSYBOX_LOGIN
  174. help
  175. The file /etc/securetty is used by (some versions of) login(1).
  176. The file contains the device names of tty lines (one per line,
  177. without leading /dev/) on which root is allowed to login.
  178. config BUSYBOX_PASSWD
  179. bool "passwd"
  180. default y
  181. select BUSYBOX_FEATURE_SUID
  182. select BUSYBOX_FEATURE_SYSLOG
  183. help
  184. passwd changes passwords for user and group accounts. A normal user
  185. may only change the password for his/her own account, the super user
  186. may change the password for any account. The administrator of a group
  187. may change the password for the group.
  188. Note that Busybox binary must be setuid root for this applet to
  189. work properly.
  190. config BUSYBOX_FEATURE_PASSWD_WEAK_CHECK
  191. bool "Check new passwords for weakness"
  192. default y
  193. depends on BUSYBOX_PASSWD
  194. help
  195. With this option passwd will refuse new passwords which are "weak".
  196. config BUSYBOX_CRYPTPW
  197. bool "cryptpw"
  198. default n
  199. help
  200. Applet for crypting a string.
  201. config BUSYBOX_CHPASSWD
  202. bool "chpasswd"
  203. default n
  204. help
  205. chpasswd reads a file of user name and password pairs from
  206. standard input and uses this information to update a group of
  207. existing users.
  208. config BUSYBOX_SU
  209. bool "su"
  210. default y
  211. select BUSYBOX_FEATURE_SUID
  212. select BUSYBOX_FEATURE_SYSLOG
  213. help
  214. su is used to become another user during a login session.
  215. Invoked without a username, su defaults to becoming the super user.
  216. Note that Busybox binary must be setuid root for this applet to
  217. work properly.
  218. config BUSYBOX_FEATURE_SU_SYSLOG
  219. bool "Enable su to write to syslog"
  220. default y
  221. depends on BUSYBOX_SU
  222. config BUSYBOX_FEATURE_SU_CHECKS_SHELLS
  223. bool "Enable su to check user's shell to be listed in /etc/shells"
  224. depends on BUSYBOX_SU
  225. default y
  226. config BUSYBOX_SULOGIN
  227. bool "sulogin"
  228. default n
  229. select BUSYBOX_FEATURE_SYSLOG
  230. help
  231. sulogin is invoked when the system goes into single user
  232. mode (this is done through an entry in inittab).
  233. config BUSYBOX_VLOCK
  234. bool "vlock"
  235. default n
  236. select BUSYBOX_FEATURE_SUID
  237. help
  238. Build the "vlock" applet which allows you to lock (virtual) terminals.
  239. Note that Busybox binary must be setuid root for this applet to
  240. work properly.
  241. endmenu