[Pcbsd-developer] An ask on PCBSD Usermanager.
Status: Beta
Brought to you by:
kmoore134
From: Matteo N. <mat...@da...> - 2006-04-19 11:50:34
|
Hi, i see in source code of usermanagerback.cpp fullnameRegExp.setPattern("([a-z]*[A-Z]*[0-9]*\\s*)+"); But, into: /usr/src/usr.sbin/pw/pw_user.c, i see: char * pw_checkname(u_char *name, int gecos) { ***************** ***************** if (gecos) { /* See if the name is valid as a gecos (comment) field. */ badchars = ":!@"; showtype = "gecos field"; the only 3 character not allowed to be in Fullname are: badchars = ":!@"; My ask is: Why usermanager of PCBSD is more restrictive than userland FreeBSD binaries, that add/remove user from the system? This is a problem, because if you add an user with useradd, you can have FullName like "Pippo &", but if you try to edit this user with PCBSDUserManager, when you try to save changes (without change the FullName), it gives you an error on "Pippo &". Why not use the same badchars of pw_user.c instead of a regular expression? Bye. |