busybox: update to 1.22.1
[openwrt/svn-archive/archive.git] / package / utils / busybox / config / loginutils / Config.in
index 8c32851a2bdf9d2b160329aba7452aafbe0bca1f..7fbe6a0aec1bded211df74acbf1a71e082ad1c60 100644 (file)
@@ -8,19 +8,19 @@ menu "Login/Password Management Utilities"
 
 config BUSYBOX_CONFIG_ADD_SHELL
        bool "add-shell"
-       default n if BUSYBOX_CONFIG_DESKTOP
+       default BUSYBOX_DEFAULT_ADD_SHELL if BUSYBOX_CONFIG_DESKTOP
        help
          Add shells to /etc/shells.
 
 config BUSYBOX_CONFIG_REMOVE_SHELL
        bool "remove-shell"
-       default n if BUSYBOX_CONFIG_DESKTOP
+       default BUSYBOX_DEFAULT_REMOVE_SHELL if BUSYBOX_CONFIG_DESKTOP
        help
          Remove shells from /etc/shells.
 
 config BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS
        bool "Support for shadow passwords"
-       default y
+       default BUSYBOX_DEFAULT_FEATURE_SHADOWPASSWDS
        help
          Build support for shadow password in /etc/shadow. This file is only
          readable by root and thus the encrypted passwords are no longer
@@ -28,7 +28,7 @@ config BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS
 
 config BUSYBOX_CONFIG_USE_BB_PWD_GRP
        bool "Use internal password and group functions rather than system functions"
-       default n
+       default BUSYBOX_DEFAULT_USE_BB_PWD_GRP
        help
          If you leave this disabled, busybox will use the system's password
          and group functions. And if you are using the GNU C library
@@ -53,7 +53,7 @@ config BUSYBOX_CONFIG_USE_BB_PWD_GRP
 
 config BUSYBOX_CONFIG_USE_BB_SHADOW
        bool "Use internal shadow password functions"
-       default n
+       default BUSYBOX_DEFAULT_USE_BB_SHADOW
        depends on BUSYBOX_CONFIG_USE_BB_PWD_GRP && BUSYBOX_CONFIG_FEATURE_SHADOWPASSWDS
        help
          If you leave this disabled, busybox will use the system's shadow
@@ -72,7 +72,7 @@ config BUSYBOX_CONFIG_USE_BB_SHADOW
 
 config BUSYBOX_CONFIG_USE_BB_CRYPT
        bool "Use internal crypt functions"
-       default n
+       default BUSYBOX_DEFAULT_USE_BB_CRYPT
        help
          Busybox has internal DES and MD5 crypt functions.
          They produce results which are identical to corresponding
@@ -94,7 +94,7 @@ config BUSYBOX_CONFIG_USE_BB_CRYPT
 
 config BUSYBOX_CONFIG_USE_BB_CRYPT_SHA
        bool "Enable SHA256/512 crypt functions"
-       default n
+       default BUSYBOX_DEFAULT_USE_BB_CRYPT_SHA
        depends on BUSYBOX_CONFIG_USE_BB_CRYPT
        help
          Enable this if you have passwords starting with "$5$" or "$6$"
@@ -106,20 +106,20 @@ config BUSYBOX_CONFIG_USE_BB_CRYPT_SHA
 
 config BUSYBOX_CONFIG_ADDUSER
        bool "adduser"
-       default n
+       default BUSYBOX_DEFAULT_ADDUSER
        help
          Utility for creating a new user account.
 
 config BUSYBOX_CONFIG_FEATURE_ADDUSER_LONG_OPTIONS
        bool "Enable long options"
-       default n
+       default BUSYBOX_DEFAULT_FEATURE_ADDUSER_LONG_OPTIONS
        depends on BUSYBOX_CONFIG_ADDUSER && BUSYBOX_CONFIG_LONG_OPTS
        help
          Support long options for the adduser applet.
 
 config BUSYBOX_CONFIG_FEATURE_CHECK_NAMES
        bool "Enable sanity check on user/group names in adduser and addgroup"
-       default n
+       default BUSYBOX_DEFAULT_FEATURE_CHECK_NAMES
        depends on BUSYBOX_CONFIG_ADDUSER || BUSYBOX_CONFIG_ADDGROUP
        help
          Enable sanity check on user and group names in adduser and addgroup.
@@ -133,7 +133,7 @@ config BUSYBOX_CONFIG_FIRST_SYSTEM_ID
        int "First valid system uid or gid for adduser and addgroup"
        depends on BUSYBOX_CONFIG_ADDUSER || BUSYBOX_CONFIG_ADDGROUP
        range 0 64900
-       default 100
+       default BUSYBOX_DEFAULT_FIRST_SYSTEM_ID
        help
          First valid system uid or gid for adduser and addgroup
 
@@ -141,26 +141,26 @@ config BUSYBOX_CONFIG_LAST_SYSTEM_ID
        int "Last valid system uid or gid for adduser and addgroup"
        depends on BUSYBOX_CONFIG_ADDUSER || BUSYBOX_CONFIG_ADDGROUP
        range 0 64900
-       default 999
+       default BUSYBOX_DEFAULT_LAST_SYSTEM_ID
        help
          Last valid system uid or gid for adduser and addgroup
 
 config BUSYBOX_CONFIG_ADDGROUP
        bool "addgroup"
-       default n
+       default BUSYBOX_DEFAULT_ADDGROUP
        help
          Utility for creating a new group account.
 
 config BUSYBOX_CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS
        bool "Enable long options"
-       default n
+       default BUSYBOX_DEFAULT_FEATURE_ADDGROUP_LONG_OPTIONS
        depends on BUSYBOX_CONFIG_ADDGROUP && BUSYBOX_CONFIG_LONG_OPTS
        help
          Support long options for the addgroup applet.
 
 config BUSYBOX_CONFIG_FEATURE_ADDUSER_TO_GROUP
        bool "Support for adding users to groups"
-       default n
+       default BUSYBOX_DEFAULT_FEATURE_ADDUSER_TO_GROUP
        depends on BUSYBOX_CONFIG_ADDGROUP
        help
          If  called  with two non-option arguments,
@@ -169,19 +169,19 @@ config BUSYBOX_CONFIG_FEATURE_ADDUSER_TO_GROUP
 
 config BUSYBOX_CONFIG_DELUSER
        bool "deluser"
-       default n
+       default BUSYBOX_DEFAULT_DELUSER
        help
          Utility for deleting a user account.
 
 config BUSYBOX_CONFIG_DELGROUP
        bool "delgroup"
-       default n
+       default BUSYBOX_DEFAULT_DELGROUP
        help
          Utility for deleting a group account.
 
 config BUSYBOX_CONFIG_FEATURE_DEL_USER_FROM_GROUP
        bool "Support for removing users from groups"
-       default n
+       default BUSYBOX_DEFAULT_FEATURE_DEL_USER_FROM_GROUP
        depends on BUSYBOX_CONFIG_DELGROUP
        help
          If called with two non-option arguments, deluser
@@ -189,7 +189,7 @@ config BUSYBOX_CONFIG_FEATURE_DEL_USER_FROM_GROUP
 
 config BUSYBOX_CONFIG_GETTY
        bool "getty"
-       default n
+       default BUSYBOX_DEFAULT_GETTY
        select BUSYBOX_CONFIG_FEATURE_SYSLOG
        help
          getty lets you log in on a tty. It is normally invoked by init.
@@ -208,7 +208,7 @@ config BUSYBOX_CONFIG_GETTY
 
 config BUSYBOX_CONFIG_LOGIN
        bool "login"
-       default n
+       default BUSYBOX_DEFAULT_LOGIN
        select BUSYBOX_CONFIG_FEATURE_SYSLOG
        help
          login is used when signing onto a system.
@@ -216,29 +216,35 @@ config BUSYBOX_CONFIG_LOGIN
          Note that Busybox binary must be setuid root for this applet to
          work properly.
 
+config BUSYBOX_CONFIG_LOGIN_SESSION_AS_CHILD
+       bool "Run logged in session in a child process"
+       default BUSYBOX_DEFAULT_LOGIN_SESSION_AS_CHILD if BUSYBOX_CONFIG_PAM
+       depends on BUSYBOX_CONFIG_LOGIN
+       help
+         Run the logged in session in a child process.  This allows
+         login to clean up things such as utmp entries or PAM sessions
+         when the login session is complete.  If you use PAM, you
+         almost always would want this to be set to Y, else PAM session
+         will not be cleaned up.
+
 config BUSYBOX_CONFIG_PAM
        bool "Support for PAM (Pluggable Authentication Modules)"
-       default n
-       depends on DEVEL
+       default BUSYBOX_DEFAULT_PAM
        depends on BUSYBOX_CONFIG_LOGIN
        help
          Use PAM in login(1) instead of direct access to password database.
 
-         OpenWrt specific:
-           You should install libpam from the packages feed and compile it
-           before trying to build busysbox.
-
 config BUSYBOX_CONFIG_LOGIN_SCRIPTS
        bool "Support for login scripts"
        depends on BUSYBOX_CONFIG_LOGIN
-       default n
+       default BUSYBOX_DEFAULT_LOGIN_SCRIPTS
        help
          Enable this if you want login to execute $LOGIN_PRE_SUID_SCRIPT
          just prior to switching from root to logged-in user.
 
 config BUSYBOX_CONFIG_FEATURE_NOLOGIN
        bool "Support for /etc/nologin"
-       default n
+       default BUSYBOX_DEFAULT_FEATURE_NOLOGIN
        depends on BUSYBOX_CONFIG_LOGIN
        help
          The file /etc/nologin is used by (some versions of) login(1).
@@ -246,7 +252,7 @@ config BUSYBOX_CONFIG_FEATURE_NOLOGIN
 
 config BUSYBOX_CONFIG_FEATURE_SECURETTY
        bool "Support for /etc/securetty"
-       default n
+       default BUSYBOX_DEFAULT_FEATURE_SECURETTY
        depends on BUSYBOX_CONFIG_LOGIN
        help
          The file /etc/securetty is used by (some versions of) login(1).
@@ -255,7 +261,7 @@ config BUSYBOX_CONFIG_FEATURE_SECURETTY
 
 config BUSYBOX_CONFIG_PASSWD
        bool "passwd"
-       default y
+       default BUSYBOX_DEFAULT_PASSWD
        select BUSYBOX_CONFIG_FEATURE_SYSLOG
        help
          passwd changes passwords for user and group accounts. A normal user
@@ -268,14 +274,14 @@ config BUSYBOX_CONFIG_PASSWD
 
 config BUSYBOX_CONFIG_FEATURE_PASSWD_WEAK_CHECK
        bool "Check new passwords for weakness"
-       default y
+       default BUSYBOX_DEFAULT_FEATURE_PASSWD_WEAK_CHECK
        depends on BUSYBOX_CONFIG_PASSWD
        help
          With this option passwd will refuse new passwords which are "weak".
 
 config BUSYBOX_CONFIG_CRYPTPW
        bool "cryptpw"
-       default n
+       default BUSYBOX_DEFAULT_CRYPTPW
        help
          Encrypts the given password with the crypt(3) libc function
          using the given salt. Debian has this utility under mkpasswd
@@ -283,14 +289,21 @@ config BUSYBOX_CONFIG_CRYPTPW
 
 config BUSYBOX_CONFIG_CHPASSWD
        bool "chpasswd"
-       default n
+       default BUSYBOX_DEFAULT_CHPASSWD
        help
          Reads a file of user name and password pairs from standard input
          and uses this information to update a group of existing users.
 
+config BUSYBOX_CONFIG_FEATURE_DEFAULT_PASSWD_ALGO
+       string "Default password encryption method (passwd -a, cryptpw -m parameter)"
+       default BUSYBOX_DEFAULT_FEATURE_DEFAULT_PASSWD_ALGO
+       depends on BUSYBOX_CONFIG_PASSWD || BUSYBOX_CONFIG_CRYPTPW
+       help
+         Possible choices are "d[es]", "m[d5]", "s[ha256]" or "sha512".
+
 config BUSYBOX_CONFIG_SU
        bool "su"
-       default n
+       default BUSYBOX_DEFAULT_SU
        select BUSYBOX_CONFIG_FEATURE_SYSLOG
        help
          su is used to become another user during a login session.
@@ -301,17 +314,17 @@ config BUSYBOX_CONFIG_SU
 
 config BUSYBOX_CONFIG_FEATURE_SU_SYSLOG
        bool "Enable su to write to syslog"
-       default n
+       default BUSYBOX_DEFAULT_FEATURE_SU_SYSLOG
        depends on BUSYBOX_CONFIG_SU
 
 config BUSYBOX_CONFIG_FEATURE_SU_CHECKS_SHELLS
        bool "Enable su to check user's shell to be listed in /etc/shells"
        depends on BUSYBOX_CONFIG_SU
-       default n
+       default BUSYBOX_DEFAULT_FEATURE_SU_CHECKS_SHELLS
 
 config BUSYBOX_CONFIG_SULOGIN
        bool "sulogin"
-       default n
+       default BUSYBOX_DEFAULT_SULOGIN
        select BUSYBOX_CONFIG_FEATURE_SYSLOG
        help
          sulogin is invoked when the system goes into single user
@@ -319,7 +332,7 @@ config BUSYBOX_CONFIG_SULOGIN
 
 config BUSYBOX_CONFIG_VLOCK
        bool "vlock"
-       default n
+       default BUSYBOX_DEFAULT_VLOCK
        help
          Build the "vlock" applet which allows you to lock (virtual) terminals.