Date: Tue, 8 Nov 2011 17:47:28 -0600 (CST) From: Dan The Man <dan@sunsaturn.com> To: freebsd-current@freebsd.org Subject: MAXLOGNAME + /etc/group + chkgrp invalid character @ Message-ID: <alpine.BSF.2.00.1111081745520.10168@sunsaturn.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1111081745520.10168>