From owner-freebsd-questions Thu Mar 29 22:59:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp016.mail.yahoo.com (smtp016.mail.yahoo.com [216.136.174.113]) by hub.freebsd.org (Postfix) with SMTP id 0436337B71B for ; Thu, 29 Mar 2001 22:59:25 -0800 (PST) (envelope-from fasi_74@yahoo.com) Received: from unknown (HELO terminal4) (202.87.102.168) by smtp.mail.vip.sc5.yahoo.com with SMTP; 30 Mar 2001 06:59:23 -0000 X-Apparently-From: Message-ID: <001f01c0b954$22c214f0$04036b83@terminal4> Reply-To: "Faisal Gillani" From: "Faisal Gillani" To: , "Dan Larsson" Cc: References: <20010329114525.F17737-100000@hq1.tyfon.net> <20010329151747.B26465@billygoat.slb.to> Subject: Re: pw not accepting @-sign Date: Fri, 30 Mar 2001 12:00:52 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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" To: "Dan Larsson" Cc: 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