From owner-freebsd-questions@FreeBSD.ORG Thu Apr 14 21:50:14 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9A9110656F8 for ; Thu, 14 Apr 2011 21:50:14 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout024.mac.com (asmtpout024.mac.com [17.148.16.99]) by mx1.freebsd.org (Postfix) with ESMTP id 99C498FC15 for ; Thu, 14 Apr 2011 21:50:11 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp024.mac.com (Oracle Communications Messaging Exchange Server 7u4-18.01 64bit (built Jul 15 2010)) with ESMTPSA id <0LJN00GJNWNBMC00@asmtp024.mac.com> for freebsd-questions@freebsd.org; Thu, 14 Apr 2011 14:49:59 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2011-04-14_09:2011-04-14, 2011-04-14, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1104140154 From: Chuck Swiger In-reply-to: <0A2B2795-F241-4759-9DFD-37146AB3AB6D@cwis.biz> Date: Thu, 14 Apr 2011 14:49:59 -0700 Message-id: <77C43A57-8CB3-463F-8B91-2094A37CF4F3@mac.com> References: <0A2B2795-F241-4759-9DFD-37146AB3AB6D@cwis.biz> To: Ryan Coleman X-Mailer: Apple Mail (2.1084) Cc: FreeBSD Mailing List Subject: Re: Extending pw(8) username limit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2011 21:50:14 -0000 On Apr 14, 2011, at 2:20 PM, Ryan Coleman wrote: > I have a special situation where I'd like to do either first.last_somedomain.com or first.last@somedomain.com but the former is rejected due to length and the latter due to the "@" by pw(8). > > How do I extend this from 16 chars to 32 or 64? I have been finding it difficult to find explicit details on this. >From prior experience, your users are going to loathe ("hate" isn't strong enough) 16+ character usernames. If the problem is that you want to setup email aliases mapping (eg) charles.swiger, charles_swiger, chuck.swiger, etc, etc to cswiger, the mail aliases file supports that just fine. And if you want to support users in multiple domains, the /etc/passwd database is just not the place to do it. Consider SASL, LDAP, or even NIS+; and SASL in particular integrates very smoothly with multi-domain email via Cyrus, Dovecot, etc. Regards, -- -Chuck