From owner-freebsd-current@FreeBSD.ORG Tue Nov 8 23:47:28 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0E11106564A for ; Tue, 8 Nov 2011 23:47:28 +0000 (UTC) (envelope-from dan@sunsaturn.com) Received: from sunsaturn.com (mail1.sunsaturn.com [IPv6:2001:49f0:4004::2]) by mx1.freebsd.org (Postfix) with ESMTP id 7D56A8FC18 for ; Tue, 8 Nov 2011 23:47:28 +0000 (UTC) Received: by sunsaturn.com (Postfix, from userid 1001) id 1E8C8119C6F; Tue, 8 Nov 2011 17:47:28 -0600 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sunsaturn.com; s=gamma; t=1320796048; bh=2vsQqvZqExmG6AXoUtoIIxG3IiJSeyTxonrt8Vwk5vw=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=ePbZ7RILQXtNznRtLVJbWGf9702NQ1KCx1uMEXWeU9OakzDeM0dXlYnstGO9r9bx6 1KBJEwDOJvVzvSK5ExLfboHrXjw08MlYsJKDKTQSAvTR70nLGFHM32KraaWXgGH/8y fe1ESAUwSc/+UIrPV+IJTo1UhuyeI2dx4WtRS3jk= Received: from localhost (localhost [127.0.0.1]) by sunsaturn.com (Postfix) with ESMTP id 19F98119C62 for ; Tue, 8 Nov 2011 17:47:28 -0600 (CST) Date: Tue, 8 Nov 2011 17:47:28 -0600 (CST) From: Dan The Man To: freebsd-current@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: MAXLOGNAME + /etc/group + chkgrp invalid character @ X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2011 23:47:28 -0000 With libnss-mysql we are able to login using email addresses etc. In the daily cron "Daily run output" email always get the following: Verifying group file syntax: chkgrp: /etc/group: line 3: '@' invalid character Could we modify system to support email addresses as usernames. From my testing it works fine, even with "Daily run output" complaining I can still su to user i added in wheel group. We'd need to fix ckkgrp source, adduser source, and making move to: #define MAXLOGNAME 256 in /usr/src/sys/sys/param.h I beleive OS's like macOSX etc when I read over their source is already setting this to 256. I beleive param.h is only place need to define this, in 8.2 and previous UT_NAMESIZE needed to be set in /usr/src/include/utmp.h as 255 and /usr/src/sys/sys/param.h needed MAXLOGNAME set to UT_NAMESIZE+1, but seems we did away with utmp.h in freebsd 9.0 only needing to set param.h now. Dan. -- Dan The Man CTO/ Senior System Administrator Websites, Domains and Everything else http://www.SunSaturn.com Email: Dan@SunSaturn.com