Config.in 12 KB

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