On Sun, 06 Feb 2005 12:31:39 +0100, Florian Weimer <[EMAIL PROTECTED]> wrote: >The current --force-badname check is /^[A-Za-z_][-_A-Za-z0-9]*\$?$/. >Wouldn't it make more sense to add the "." just to the second >character class?
That one wouldn't solve the "I want my usernames to start with a digit" issue. > User names starting with "-" could be truly awful. But a local problem, in that case. >Even if a custom regular expression has been configured, you should >check for "\n" and ":" in user names and reject them, just to be sure >(and maybe a few more funny characters). Just being sure will prompt strange bug reports. There is always useradd doing its own checks behind though. Greetings Marc -- -------------------------------------- !! No courtesy copies, please !! ----- Marc Haber | " Questions are the | Mailadresse im Header Mannheim, Germany | Beginning of Wisdom " | http://www.zugschlus.de/ Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834