diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-08-26 23:13:00 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-08-26 23:13:00 +0000 |
commit | 138791050d36d221d718568094892245d7c6f6ec (patch) | |
tree | 24c9479dab9bc019f716093628a70e392b3c40cb /loginutils | |
parent | 37ba6bfb6d7ff7287ecda14bb4906fa6de1e78c9 (diff) | |
download | busybox-w32-138791050d36d221d718568094892245d7c6f6ec.tar.gz busybox-w32-138791050d36d221d718568094892245d7c6f6ec.tar.bz2 busybox-w32-138791050d36d221d718568094892245d7c6f6ec.zip |
Improve the setuid situation a bit, and make it more apparent
when people really ought to make busybox setuid root.
-Erik
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/Config.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/loginutils/Config.in b/loginutils/Config.in index d9938b066..5619aa9af 100644 --- a/loginutils/Config.in +++ b/loginutils/Config.in | |||
@@ -69,9 +69,13 @@ config CONFIG_FEATURE_U_W_TMP | |||
69 | config CONFIG_LOGIN | 69 | config CONFIG_LOGIN |
70 | bool "login" | 70 | bool "login" |
71 | default n | 71 | default n |
72 | select CONFIG_FEATURE_SUID | ||
72 | help | 73 | help |
73 | login is used when signing onto a system. | 74 | login is used when signing onto a system. |
74 | 75 | ||
76 | Note that Busybox binary must be setuid root for this applet to | ||
77 | work properly. | ||
78 | |||
75 | config CONFIG_FEATURE_SECURETTY | 79 | config CONFIG_FEATURE_SECURETTY |
76 | bool " Support for /etc/securetty" | 80 | bool " Support for /etc/securetty" |
77 | default y | 81 | default y |
@@ -84,19 +88,27 @@ config CONFIG_FEATURE_SECURETTY | |||
84 | config CONFIG_PASSWD | 88 | config CONFIG_PASSWD |
85 | bool "passwd" | 89 | bool "passwd" |
86 | default n | 90 | default n |
91 | select CONFIG_FEATURE_SUID | ||
87 | help | 92 | help |
88 | passwd changes passwords for user and group accounts. A normal user | 93 | passwd changes passwords for user and group accounts. A normal user |
89 | may only change the password for his/her own account, the super user | 94 | may only change the password for his/her own account, the super user |
90 | may change the password for any account. The administrator of a group | 95 | may change the password for any account. The administrator of a group |
91 | may change the password for the group. | 96 | may change the password for the group. |
92 | 97 | ||
98 | Note that Busybox binary must be setuid root for this applet to | ||
99 | work properly. | ||
100 | |||
93 | config CONFIG_SU | 101 | config CONFIG_SU |
94 | bool "su" | 102 | bool "su" |
95 | default n | 103 | default n |
104 | select CONFIG_FEATURE_SUID | ||
96 | help | 105 | help |
97 | su is used to become another user during a login session. | 106 | su is used to become another user during a login session. |
98 | Invoked without a username, su defaults to becoming the super user. | 107 | Invoked without a username, su defaults to becoming the super user. |
99 | 108 | ||
109 | Note that Busybox binary must be setuid root for this applet to | ||
110 | work properly. | ||
111 | |||
100 | config CONFIG_SULOGIN | 112 | config CONFIG_SULOGIN |
101 | bool "sulogin" | 113 | bool "sulogin" |
102 | default n | 114 | default n |
@@ -107,9 +119,13 @@ config CONFIG_SULOGIN | |||
107 | config CONFIG_VLOCK | 119 | config CONFIG_VLOCK |
108 | bool "vlock" | 120 | bool "vlock" |
109 | default n | 121 | default n |
122 | select CONFIG_FEATURE_SUID | ||
110 | help | 123 | help |
111 | Build the "vlock" applet which allows you to lock (virtual) terminals. | 124 | Build the "vlock" applet which allows you to lock (virtual) terminals. |
112 | 125 | ||
126 | Note that Busybox binary must be setuid root for this applet to | ||
127 | work properly. | ||
128 | |||
113 | comment "Common options for adduser, deluser, login, su" | 129 | comment "Common options for adduser, deluser, login, su" |
114 | depends on CONFIG_ADDUSER || CONFIG_DELUSER || CONFIG_LOGIN || CONFIG_SU | 130 | depends on CONFIG_ADDUSER || CONFIG_DELUSER || CONFIG_LOGIN || CONFIG_SU |
115 | 131 | ||