From owner-freebsd-questions Thu Mar 29 13:17:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dsl-64-193-218-89.telocity.com (dsl-64-193-218-89.telocity.com [64.193.218.89]) by hub.freebsd.org (Postfix) with SMTP id 6F48E37B719 for ; Thu, 29 Mar 2001 13:17:27 -0800 (PST) (envelope-from lucas@slb.to) Received: (qmail 1257 invoked by uid 1000); 29 Mar 2001 21:17:48 -0000 Date: Thu, 29 Mar 2001 15:17:47 -0600 From: Lucas Bergman To: Dan Larsson Cc: questions@freebsd.org Subject: Re: pw not accepting @-sign Message-ID: <20010329151747.B26465@billygoat.slb.to> Reply-To: lucas@slb.to References: <20010329114525.F17737-100000@hq1.tyfon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010329114525.F17737-100000@hq1.tyfon.net>; from dl@tyfon.net on Thu, Mar 29, 2001 at 11:46:51AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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