Date: Fri, 30 Mar 2001 12:00:52 -0800 From: "Faisal Gillani" <fasi_74@yahoo.com> To: <lucas@slb.to>, "Dan Larsson" <dl@tyfon.net> Cc: <questions@freebsd.org> Subject: Re: pw not accepting @-sign Message-ID: <001f01c0b954$22c214f0$04036b83@terminal4> References: <20010329114525.F17737-100000@hq1.tyfon.net> <20010329151747.B26465@billygoat.slb.to>
next in thread | previous in thread | raw e-mail | index | archive | help
Well i also tried adduser utility to name a user name with @ caracter but it is also not working ... *º¤., ¸¸,.¤º*¨¨¨*Faisal Gillani º¤., ¸¸,.¤º*¨¨*¤ ----- Original Message ----- From: "Lucas Bergman" <lucas@slb.to> To: "Dan Larsson" <dl@tyfon.net> Cc: <questions@freebsd.org> Sent: Thursday, March 29, 2001 1:17 PM Subject: Re: pw not accepting @-sign > > Is it possible to make pw accept @-signs in the gecos/description > > field? > > Look at /usr/src/usr.sbin/pw/pw_user.c, around line 1210, near the > beginning of the pw_checkname() function, you'll see something that > looks like: > > char const *notch = gecos ? ":!@" : " ,\t:+&#%$^()!@~*?<>=|\\/\""; > > The three characters in the first string (':', '!', and '@') are the > printable characters not allowed in GECOS fields. Remove the '@' and > rebuild, and you're in business. > > Note that I don't know why '@' is outlawed in GECOS fields in the > first place, so I have no idea if this will impact the system. > > Lucas > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001f01c0b954$22c214f0$04036b83>