diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-19 23:15:26 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-19 23:15:26 +0000 |
commit | a7d6c8bab919e1a537f8b7db7b8676484e60f550 (patch) | |
tree | fd5d442775f7551b76d22563816d30b4fc6a6029 /loginutils/Config.in | |
parent | cf7cf622046b0e1a2817e1da4aa8bc6f513b0153 (diff) | |
download | busybox-w32-a7d6c8bab919e1a537f8b7db7b8676484e60f550.tar.gz busybox-w32-a7d6c8bab919e1a537f8b7db7b8676484e60f550.tar.bz2 busybox-w32-a7d6c8bab919e1a537f8b7db7b8676484e60f550.zip |
adduser/addgroup: check username for invalid chars
(by Tito <farmatito AT tiscali.it>). +129 bytes when enabled.
Diffstat (limited to 'loginutils/Config.in')
-rw-r--r-- | loginutils/Config.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/loginutils/Config.in b/loginutils/Config.in index 81d05ef89..c57d9976e 100644 --- a/loginutils/Config.in +++ b/loginutils/Config.in | |||
@@ -82,6 +82,18 @@ config FEATURE_DEL_USER_FROM_GROUP | |||
82 | If called with two non-option arguments, deluser | 82 | If called with two non-option arguments, deluser |
83 | or delgroup will remove an user from a specified group. | 83 | or delgroup will remove an user from a specified group. |
84 | 84 | ||
85 | config FEATURE_CHECK_NAMES | ||
86 | bool "Enable sanity check on user/group names in adduser and addgroup" | ||
87 | default n | ||
88 | depends on ADDUSER || ADDGROUP | ||
89 | help | ||
90 | Enable sanity check on user and group names in adduser and addgroup. | ||
91 | To avoid problems, the user or group name should consist only of | ||
92 | letters, digits, underscores, periods, at signs and dashes, | ||
93 | and not start with a dash (as defined by IEEE Std 1003.1-2001). | ||
94 | For compatibility with Samba machine accounts "$" is also supported | ||
95 | at the end of the user or group name. | ||
96 | |||
85 | config ADDUSER | 97 | config ADDUSER |
86 | bool "adduser" | 98 | bool "adduser" |
87 | default n | 99 | default n |