Config.in 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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 docs/Kconfig-language.txt.
  5. #
  6. menu "Login/Password Management Utilities"
  7. config BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS
  8. bool "Support 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 (3.3 kb)"
  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 (3.3 kb)"
  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 (8.8 kb)"
  93. default BUSYBOX_DEFAULT_ADDGROUP
  94. select BUSYBOX_CONFIG_LONG_OPTS
  95. help
  96. Utility for creating a new group account.
  97. config BUSYBOX_CONFIG_FEATURE_ADDUSER_TO_GROUP
  98. bool "Support adding users to groups"
  99. default BUSYBOX_DEFAULT_FEATURE_ADDUSER_TO_GROUP
  100. depends on BUSYBOX_CONFIG_ADDGROUP
  101. help
  102. If called with two non-option arguments,
  103. addgroup will add an existing user to an
  104. existing group.
  105. config BUSYBOX_CONFIG_ADDUSER
  106. bool "adduser (15 kb)"
  107. default BUSYBOX_DEFAULT_ADDUSER
  108. select BUSYBOX_CONFIG_LONG_OPTS
  109. help
  110. Utility for creating a new user account.
  111. config BUSYBOX_CONFIG_FEATURE_CHECK_NAMES
  112. bool "Enable sanity check on user/group names in adduser and addgroup"
  113. default BUSYBOX_DEFAULT_FEATURE_CHECK_NAMES
  114. depends on BUSYBOX_CONFIG_ADDUSER || BUSYBOX_CONFIG_ADDGROUP
  115. help
  116. Enable sanity check on user and group names in adduser and addgroup.
  117. To avoid problems, the user or group name should consist only of
  118. letters, digits, underscores, periods, at signs and dashes,
  119. and not start with a dash (as defined by IEEE Std 1003.1-2001).
  120. For compatibility with Samba machine accounts "$" is also supported
  121. at the end of the user or group name.
  122. config BUSYBOX_CONFIG_LAST_ID
  123. int "Last valid uid or gid for adduser and addgroup"
  124. depends on BUSYBOX_CONFIG_ADDUSER || BUSYBOX_CONFIG_ADDGROUP
  125. default BUSYBOX_DEFAULT_LAST_ID
  126. help
  127. Last valid uid or gid for adduser and addgroup
  128. config BUSYBOX_CONFIG_FIRST_SYSTEM_ID
  129. int "First valid system uid or gid for adduser and addgroup"
  130. depends on BUSYBOX_CONFIG_ADDUSER || BUSYBOX_CONFIG_ADDGROUP
  131. range 0 BUSYBOX_CONFIG_LAST_ID
  132. default BUSYBOX_DEFAULT_FIRST_SYSTEM_ID
  133. help
  134. First valid system uid or gid for adduser and addgroup
  135. config BUSYBOX_CONFIG_LAST_SYSTEM_ID
  136. int "Last valid system uid or gid for adduser and addgroup"
  137. depends on BUSYBOX_CONFIG_ADDUSER || BUSYBOX_CONFIG_ADDGROUP
  138. range BUSYBOX_CONFIG_FIRST_SYSTEM_ID BUSYBOX_CONFIG_LAST_ID
  139. default BUSYBOX_DEFAULT_LAST_SYSTEM_ID
  140. help
  141. Last valid system uid or gid for adduser and addgroup
  142. config BUSYBOX_CONFIG_CHPASSWD
  143. bool "chpasswd (19 kb)"
  144. default BUSYBOX_DEFAULT_CHPASSWD
  145. help
  146. Reads a file of user name and password pairs from standard input
  147. and uses this information to update a group of existing users.
  148. config BUSYBOX_CONFIG_FEATURE_DEFAULT_PASSWD_ALGO
  149. string "Default encryption method (passwd -a, cryptpw -m, chpasswd -c ALG)"
  150. default BUSYBOX_DEFAULT_FEATURE_DEFAULT_PASSWD_ALGO
  151. depends on BUSYBOX_CONFIG_PASSWD || BUSYBOX_CONFIG_CRYPTPW || BUSYBOX_CONFIG_CHPASSWD
  152. help
  153. Possible choices are "d[es]", "m[d5]", "s[ha256]" or "sha512".
  154. config BUSYBOX_CONFIG_CRYPTPW
  155. bool "cryptpw (15 kb)"
  156. default BUSYBOX_DEFAULT_CRYPTPW
  157. help
  158. Encrypts the given password with the crypt(3) libc function
  159. using the given salt.
  160. config BUSYBOX_CONFIG_MKPASSWD
  161. bool "mkpasswd (16 kb)"
  162. default BUSYBOX_DEFAULT_MKPASSWD
  163. help
  164. Encrypts the given password with the crypt(3) libc function
  165. using the given salt. Debian has this utility under mkpasswd
  166. name. Busybox provides mkpasswd as an alias for cryptpw.
  167. config BUSYBOX_CONFIG_DELUSER
  168. bool "deluser (9.3 kb)"
  169. default BUSYBOX_DEFAULT_DELUSER
  170. help
  171. Utility for deleting a user account.
  172. config BUSYBOX_CONFIG_DELGROUP
  173. bool "delgroup (6.6 kb)"
  174. default BUSYBOX_DEFAULT_DELGROUP
  175. help
  176. Utility for deleting a group account.
  177. config BUSYBOX_CONFIG_FEATURE_DEL_USER_FROM_GROUP
  178. bool "Support removing users from groups"
  179. default BUSYBOX_DEFAULT_FEATURE_DEL_USER_FROM_GROUP
  180. depends on BUSYBOX_CONFIG_DELGROUP
  181. help
  182. If called with two non-option arguments, deluser
  183. or delgroup will remove an user from a specified group.
  184. config BUSYBOX_CONFIG_GETTY
  185. bool "getty (11 kb)"
  186. default BUSYBOX_DEFAULT_GETTY
  187. select BUSYBOX_CONFIG_FEATURE_SYSLOG
  188. help
  189. getty lets you log in on a tty. It is normally invoked by init.
  190. Note that you can save a few bytes by disabling it and
  191. using login applet directly.
  192. If you need to reset tty attributes before calling login,
  193. this script approximates getty:
  194. exec </dev/$1 >/dev/$1 2>&1 || exit 1
  195. reset
  196. stty sane; stty ispeed 38400; stty ospeed 38400
  197. printf "%s login: " "`hostname`"
  198. read -r login
  199. exec /bin/login "$login"
  200. config BUSYBOX_CONFIG_LOGIN
  201. bool "login (25 kb)"
  202. default BUSYBOX_DEFAULT_LOGIN
  203. select BUSYBOX_CONFIG_FEATURE_SYSLOG
  204. help
  205. login is used when signing onto a system.
  206. Note that busybox binary must be setuid root for this applet to
  207. work properly.
  208. config BUSYBOX_CONFIG_LOGIN_SESSION_AS_CHILD
  209. bool "Run logged in session in a child process"
  210. default BUSYBOX_DEFAULT_LOGIN_SESSION_AS_CHILD if BUSYBOX_CONFIG_PAM
  211. depends on BUSYBOX_CONFIG_LOGIN
  212. help
  213. Run the logged in session in a child process. This allows
  214. login to clean up things such as utmp entries or PAM sessions
  215. when the login session is complete. If you use PAM, you
  216. almost always would want this to be set to Y, else PAM session
  217. will not be cleaned up.
  218. config BUSYBOX_CONFIG_LOGIN_SCRIPTS
  219. bool "Support login scripts"
  220. depends on BUSYBOX_CONFIG_LOGIN
  221. default BUSYBOX_DEFAULT_LOGIN_SCRIPTS
  222. help
  223. Enable this if you want login to execute $LOGIN_PRE_SUID_SCRIPT
  224. just prior to switching from root to logged-in user.
  225. config BUSYBOX_CONFIG_FEATURE_NOLOGIN
  226. bool "Support /etc/nologin"
  227. default BUSYBOX_DEFAULT_FEATURE_NOLOGIN
  228. depends on BUSYBOX_CONFIG_LOGIN
  229. help
  230. The file /etc/nologin is used by (some versions of) login(1).
  231. If it exists, non-root logins are prohibited.
  232. config BUSYBOX_CONFIG_FEATURE_SECURETTY
  233. bool "Support /etc/securetty"
  234. default BUSYBOX_DEFAULT_FEATURE_SECURETTY
  235. depends on BUSYBOX_CONFIG_LOGIN
  236. help
  237. The file /etc/securetty is used by (some versions of) login(1).
  238. The file contains the device names of tty lines (one per line,
  239. without leading /dev/) on which root is allowed to login.
  240. config BUSYBOX_CONFIG_PASSWD
  241. bool "passwd (22 kb)"
  242. default BUSYBOX_DEFAULT_PASSWD
  243. select BUSYBOX_CONFIG_FEATURE_SYSLOG
  244. help
  245. passwd changes passwords for user and group accounts. A normal user
  246. may only change the password for his/her own account, the super user
  247. may change the password for any account. The administrator of a group
  248. may change the password for the group.
  249. Note that busybox binary must be setuid root for this applet to
  250. work properly.
  251. config BUSYBOX_CONFIG_FEATURE_PASSWD_WEAK_CHECK
  252. bool "Check new passwords for weakness"
  253. default BUSYBOX_DEFAULT_FEATURE_PASSWD_WEAK_CHECK
  254. depends on BUSYBOX_CONFIG_PASSWD
  255. help
  256. With this option passwd will refuse new passwords which are "weak".
  257. config BUSYBOX_CONFIG_SU
  258. bool "su (19 kb)"
  259. default BUSYBOX_DEFAULT_SU
  260. select BUSYBOX_CONFIG_FEATURE_SYSLOG
  261. help
  262. su is used to become another user during a login session.
  263. Invoked without a username, su defaults to becoming the super user.
  264. Note that busybox binary must be setuid root for this applet to
  265. work properly.
  266. config BUSYBOX_CONFIG_FEATURE_SU_SYSLOG
  267. bool "Log to syslog all attempts to use su"
  268. default BUSYBOX_DEFAULT_FEATURE_SU_SYSLOG
  269. depends on BUSYBOX_CONFIG_SU
  270. config BUSYBOX_CONFIG_FEATURE_SU_CHECKS_SHELLS
  271. bool "If user's shell is not in /etc/shells, disallow -s PROG"
  272. default BUSYBOX_DEFAULT_FEATURE_SU_CHECKS_SHELLS
  273. depends on BUSYBOX_CONFIG_SU
  274. config BUSYBOX_CONFIG_FEATURE_SU_BLANK_PW_NEEDS_SECURE_TTY
  275. bool "Allow blank passwords only on TTYs in /etc/securetty"
  276. default BUSYBOX_DEFAULT_FEATURE_SU_BLANK_PW_NEEDS_SECURE_TTY
  277. depends on BUSYBOX_CONFIG_SU
  278. config BUSYBOX_CONFIG_SULOGIN
  279. bool "sulogin (18 kb)"
  280. default BUSYBOX_DEFAULT_SULOGIN
  281. select BUSYBOX_CONFIG_FEATURE_SYSLOG
  282. help
  283. sulogin is invoked when the system goes into single user
  284. mode (this is done through an entry in inittab).
  285. config BUSYBOX_CONFIG_VLOCK
  286. bool "vlock (18 kb)"
  287. default BUSYBOX_DEFAULT_VLOCK
  288. help
  289. Build the "vlock" applet which allows you to lock (virtual) terminals.
  290. Note that busybox binary must be setuid root for this applet to
  291. work properly.
  292. endmenu