From owner-freebsd-questions@FreeBSD.ORG Mon Jun 17 14:20:17 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 49E92BA8 for ; Mon, 17 Jun 2013 14:20:17 +0000 (UTC) (envelope-from talayeh.asadi@gmail.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 17E8F19B6 for ; Mon, 17 Jun 2013 14:20:17 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so7080088iec.27 for ; Mon, 17 Jun 2013 07:20:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=5tjusbmw+G7Q80HXNEcm9t+T1Y1sZVJDpgpTgpJO1Zc=; b=bAIy1hZtaPsQ/D+g2+4szs3fYBf8rBI+oxvEYoasW0wrxDz2sqR3MHZtE8CrAyn8ik agiuNeHO5sN80nc9NrEdvMQFdGjc2vFLy1rmL5QqHOHVSdiwF3f6pBG7BMwKtAoNV5NU bTn4kg5dDodXKGb5vErEsVZJgnX5hJNJh8tKk+5uScupfGN6ZX5AqRUxVe6Vq41HQM6k THn1rpyM0CwuflizcNV/ydmLGBCNTHisK/LY2DF/usIN+kWV4V/LOmUlc20IAwhlYujx o2h0N8XHitmncM5Hj2qxCHV7P4zOCMKIp++9AjLC2Ek8Ub5quLt1rZoJXKnMa42IEjv/ 6w4g== X-Received: by 10.50.107.65 with SMTP id ha1mr5264638igb.50.1371478816783; Mon, 17 Jun 2013 07:20:16 -0700 (PDT) MIME-Version: 1.0 Sender: talayeh.asadi@gmail.com Received: by 10.42.153.10 with HTTP; Mon, 17 Jun 2013 07:19:56 -0700 (PDT) In-Reply-To: <44li69diyv.fsf@be-well.ilk.org> References: <44li69diyv.fsf@be-well.ilk.org> From: takCoder Date: Mon, 17 Jun 2013 17:49:56 +0330 X-Google-Sender-Auth: mO2UA-BruCnpIxFgv0k5J6H4WMg Message-ID: Subject: Re: FreeBSD maximum password length To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: tak.official@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jun 2013 14:20:17 -0000 Thank you, Lowell, for your reply. :) >> And i've heard that no-maximum-limits for passwords length is only possible >> when we keep them in encrypted form not as plain text, which i think is >> matched with FreeBSD behavior. > >Is plain-text passwords even a supported behaviour? I didn't think it was. > > I meant i think FreeBSD does not use plain-text passwords, so we won't have a limitation for that reason.. excuse me for my poor english. >_PASSWORD_LEN is the defined limit. It's 128 characters by default but >could be changed at compile time. There may be other limits, such as in >various versions of NIS. ... >I'm not sure I understand what you're doing, so I don't have any real >advice, but I don't see why 128 characters would be that hard to deal >with. I need to moderate the input password in my system's user interface. And I believe i have tested longer passwords than that, about 1000 characters long, and there was no limitations, via using this command in a /bin/sh test shell script : "echo PASSWORD | pw user mod USER -h 0". at least there was no errors reported by *pw*. i did not test the user myself.. and it somehow seems correct, as the encrypted output string may be not a function of the input string, based on the method used. Thank you :)