Config.in 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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 scripts/kbuild/config-language.txt.
  5. #
  6. menu "Login/Password Management Utilities"
  7. config BUSYBOX_ADD_SHELL
  8. bool "add-shell"
  9. default y if DESKTOP
  10. help
  11. Add shells to /etc/shells.
  12. config BUSYBOX_REMOVE_SHELL
  13. bool "remove-shell"
  14. default y if DESKTOP
  15. help
  16. Remove shells from /etc/shells.
  17. config BUSYBOX_FEATURE_SHADOWPASSWDS
  18. bool "Support for shadow passwords"
  19. default y
  20. help
  21. Build support for shadow password in /etc/shadow. This file is only
  22. readable by root and thus the encrypted passwords are no longer
  23. publicly readable.
  24. config BUSYBOX_USE_BB_PWD_GRP
  25. bool "Use internal password and group functions rather than system functions"
  26. default y
  27. help
  28. If you leave this disabled, busybox will use the system's password
  29. and group functions. And if you are using the GNU C library
  30. (glibc), you will then need to install the /etc/nsswitch.conf
  31. configuration file and the required /lib/libnss_* libraries in
  32. order for the password and group functions to work. This generally
  33. makes your embedded system quite a bit larger.
  34. Enabling this option will cause busybox to directly access the
  35. system's /etc/password, /etc/group files (and your system will be
  36. smaller, and I will get fewer emails asking about how glibc NSS
  37. works). When this option is enabled, you will not be able to use
  38. PAM to access remote LDAP password servers and whatnot. And if you
  39. want hostname resolution to work with glibc, you still need the
  40. /lib/libnss_* libraries.
  41. If you need to use glibc's nsswitch.conf mechanism
  42. (e.g. if user/group database is NOT stored in /etc/passwd etc),
  43. you must NOT use this option.
  44. If you enable this option, it will add about 1.5k.
  45. config BUSYBOX_USE_BB_SHADOW
  46. bool "Use internal shadow password functions"
  47. default y
  48. depends on BUSYBOX_USE_BB_PWD_GRP && BUSYBOX_FEATURE_SHADOWPASSWDS
  49. help
  50. If you leave this disabled, busybox will use the system's shadow
  51. password handling functions. And if you are using the GNU C library
  52. (glibc), you will then need to install the /etc/nsswitch.conf
  53. configuration file and the required /lib/libnss_* libraries in
  54. order for the shadow password functions to work. This generally
  55. makes your embedded system quite a bit larger.
  56. Enabling this option will cause busybox to directly access the
  57. system's /etc/shadow file when handling shadow passwords. This
  58. makes your system smaller (and I will get fewer emails asking about
  59. how glibc NSS works). When this option is enabled, you will not be
  60. able to use PAM to access shadow passwords from remote LDAP
  61. password servers and whatnot.
  62. config BUSYBOX_USE_BB_CRYPT
  63. bool "Use internal crypt functions"
  64. default y
  65. help
  66. Busybox has internal DES and MD5 crypt functions.
  67. They produce results which are identical to corresponding
  68. standard C library functions.
  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. For busybox, having large static buffers is undesirable,
  74. especially on NOMMU machines. Busybox also doesn't need
  75. DES encryption/decryption and can do with smaller code.
  76. If you enable this option, it will add about 4.8k of code
  77. if you are building dynamically linked executable.
  78. In static build, it makes code _smaller_ by about 1.2k,
  79. and likely many kilobytes less of bss.
  80. config BUSYBOX_USE_BB_CRYPT_SHA
  81. bool "Enable SHA256/512 crypt functions"
  82. default y
  83. depends on BUSYBOX_USE_BB_CRYPT
  84. help
  85. Enable this if you have passwords starting with "$5$" or "$6$"
  86. in your /etc/passwd or /etc/shadow files. These passwords
  87. are hashed using SHA256 and SHA512 algorithms. Support for them
  88. was added to glibc in 2008.
  89. With this option off, login will fail password check for any
  90. user which has password encrypted with these algorithms.
  91. config BUSYBOX_ADDUSER
  92. bool "adduser"
  93. default y
  94. help
  95. Utility for creating a new user account.
  96. config BUSYBOX_FEATURE_ADDUSER_LONG_OPTIONS
  97. bool "Enable long options"
  98. default y
  99. depends on BUSYBOX_ADDUSER && BUSYBOX_LONG_OPTS
  100. help
  101. Support long options for the adduser applet.
  102. config BUSYBOX_FEATURE_CHECK_NAMES
  103. bool "Enable sanity check on user/group names in adduser and addgroup"
  104. default n
  105. depends on BUSYBOX_ADDUSER || BUSYBOX_ADDGROUP
  106. help
  107. Enable sanity check on user and group names in adduser and addgroup.
  108. To avoid problems, the user or group name should consist only of
  109. letters, digits, underscores, periods, at signs and dashes,
  110. and not start with a dash (as defined by IEEE Std 1003.1-2001).
  111. For compatibility with Samba machine accounts "$" is also supported
  112. at the end of the user or group name.
  113. config BUSYBOX_FIRST_SYSTEM_ID
  114. int "First valid system uid or gid for adduser and addgroup"
  115. depends on BUSYBOX_ADDUSER || BUSYBOX_ADDGROUP
  116. range 0 64900
  117. default 100
  118. help
  119. First valid system uid or gid for adduser and addgroup
  120. config BUSYBOX_LAST_SYSTEM_ID
  121. int "Last valid system uid or gid for adduser and addgroup"
  122. depends on BUSYBOX_ADDUSER || BUSYBOX_ADDGROUP
  123. range 0 64900
  124. default 999
  125. help
  126. Last valid system uid or gid for adduser and addgroup
  127. config BUSYBOX_ADDGROUP
  128. bool "addgroup"
  129. default y
  130. help
  131. Utility for creating a new group account.
  132. config BUSYBOX_FEATURE_ADDGROUP_LONG_OPTIONS
  133. bool "Enable long options"
  134. default y
  135. depends on BUSYBOX_ADDGROUP && BUSYBOX_LONG_OPTS
  136. help
  137. Support long options for the addgroup applet.
  138. config BUSYBOX_FEATURE_ADDUSER_TO_GROUP
  139. bool "Support for adding users to groups"
  140. default y
  141. depends on BUSYBOX_ADDGROUP
  142. help
  143. If called with two non-option arguments,
  144. addgroup will add an existing user to an
  145. existing group.
  146. config BUSYBOX_DELUSER
  147. bool "deluser"
  148. default y
  149. help
  150. Utility for deleting a user account.
  151. config BUSYBOX_DELGROUP
  152. bool "delgroup"
  153. default y
  154. help
  155. Utility for deleting a group account.
  156. config BUSYBOX_FEATURE_DEL_USER_FROM_GROUP
  157. bool "Support for removing users from groups"
  158. default y
  159. depends on BUSYBOX_DELGROUP
  160. help
  161. If called with two non-option arguments, deluser
  162. or delgroup will remove an user from a specified group.
  163. config BUSYBOX_GETTY
  164. bool "getty"
  165. default y
  166. select BUSYBOX_FEATURE_SYSLOG
  167. help
  168. getty lets you log in on a tty. It is normally invoked by init.
  169. Note that you can save a few bytes by disabling it and
  170. using login applet directly.
  171. If you need to reset tty attributes before calling login,
  172. this script approximates getty:
  173. exec </dev/$1 >/dev/$1 2>&1 || BUSYBOX_exit 1
  174. reset
  175. stty sane; stty ispeed 38400; stty ospeed 38400
  176. printf "%s login: " "`hostname`"
  177. read -r login
  178. exec /bin/login "$login"
  179. config BUSYBOX_LOGIN
  180. bool "login"
  181. default y
  182. select BUSYBOX_FEATURE_SYSLOG
  183. help
  184. login is used when signing onto a system.
  185. Note that Busybox binary must be setuid root for this applet to
  186. work properly.
  187. config BUSYBOX_LOGIN_SESSION_AS_CHILD
  188. bool "Run logged in session in a child process"
  189. default y if PAM
  190. depends on BUSYBOX_LOGIN
  191. help
  192. Run the logged in session in a child process. This allows
  193. login to clean up things such as utmp entries or PAM sessions
  194. when the login session is complete. If you use PAM, you
  195. almost always would want this to be set to Y, else PAM session
  196. will not be cleaned up.
  197. config BUSYBOX_PAM
  198. bool "Support for PAM (Pluggable Authentication Modules)"
  199. depends on !BUSYBOX_DISABLE_PAM
  200. default n
  201. depends on BUSYBOX_LOGIN
  202. help
  203. Use PAM in login(1) instead of direct access to password database.
  204. config BUSYBOX_LOGIN_SCRIPTS
  205. bool "Support for login scripts"
  206. depends on BUSYBOX_LOGIN
  207. default n
  208. help
  209. Enable this if you want login to execute $LOGIN_PRE_SUID_SCRIPT
  210. just prior to switching from root to logged-in user.
  211. config BUSYBOX_FEATURE_NOLOGIN
  212. bool "Support for /etc/nologin"
  213. default y
  214. depends on BUSYBOX_LOGIN
  215. help
  216. The file /etc/nologin is used by (some versions of) login(1).
  217. If it exists, non-root logins are prohibited.
  218. config BUSYBOX_FEATURE_SECURETTY
  219. bool "Support for /etc/securetty"
  220. default n
  221. depends on BUSYBOX_LOGIN
  222. help
  223. The file /etc/securetty is used by (some versions of) login(1).
  224. The file contains the device names of tty lines (one per line,
  225. without leading /dev/) on which root is allowed to login.
  226. config BUSYBOX_PASSWD
  227. bool "passwd"
  228. default y
  229. select BUSYBOX_FEATURE_SYSLOG
  230. help
  231. passwd changes passwords for user and group accounts. A normal user
  232. may only change the password for his/her own account, the super user
  233. may change the password for any account. The administrator of a group
  234. may change the password for the group.
  235. Note that Busybox binary must be setuid root for this applet to
  236. work properly.
  237. config BUSYBOX_FEATURE_PASSWD_WEAK_CHECK
  238. bool "Check new passwords for weakness"
  239. default n
  240. depends on BUSYBOX_PASSWD
  241. help
  242. With this option passwd will refuse new passwords which are "weak".
  243. config BUSYBOX_CRYPTPW
  244. bool "cryptpw"
  245. default n
  246. help
  247. Encrypts the given password with the crypt(3) libc function
  248. using the given salt. Debian has this utility under mkpasswd
  249. name. Busybox provides mkpasswd as an alias for cryptpw.
  250. config BUSYBOX_CHPASSWD
  251. bool "chpasswd"
  252. default n
  253. help
  254. Reads a file of user name and password pairs from standard input
  255. and uses this information to update a group of existing users.
  256. config BUSYBOX_FEATURE_DEFAULT_PASSWD_ALGO
  257. string "Default password encryption method (passwd -a, cryptpw -m parameter)"
  258. default "des"
  259. depends on BUSYBOX_PASSWD || BUSYBOX_CRYPTPW
  260. help
  261. Possible choices are "d[es]", "m[d5]", "s[ha256]" or "sha512".
  262. config BUSYBOX_SU
  263. bool "su"
  264. default y
  265. select BUSYBOX_FEATURE_SYSLOG
  266. help
  267. su is used to become another user during a login session.
  268. Invoked without a username, su defaults to becoming the super user.
  269. Note that Busybox binary must be setuid root for this applet to
  270. work properly.
  271. config BUSYBOX_FEATURE_SU_SYSLOG
  272. bool "Enable su to write to syslog"
  273. default y
  274. depends on BUSYBOX_SU
  275. config BUSYBOX_FEATURE_SU_CHECKS_SHELLS
  276. bool "Enable su to check user's shell to be listed in /etc/shells"
  277. depends on BUSYBOX_SU
  278. default y
  279. config BUSYBOX_SULOGIN
  280. bool "sulogin"
  281. default n
  282. select BUSYBOX_FEATURE_SYSLOG
  283. help
  284. sulogin is invoked when the system goes into single user
  285. mode (this is done through an entry in inittab).
  286. config BUSYBOX_VLOCK
  287. bool "vlock"
  288. default n
  289. help
  290. Build the "vlock" applet which allows you to lock (virtual) terminals.
  291. Note that Busybox binary must be setuid root for this applet to
  292. work properly.
  293. endmenu