From owner-freebsd-questions@FreeBSD.ORG Wed Jan 23 20:25:28 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B49A0BAF for ; Wed, 23 Jan 2013 20:25:28 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 36B0FD29 for ; Wed, 23 Jan 2013 20:25:28 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.6/8.14.6) with ESMTP id r0NKPK7Z025573 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 23 Jan 2013 20:25:20 GMT (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.7.4 smtp.infracaninophile.co.uk r0NKPK7Z025573 Authentication-Results: smtp.infracaninophile.co.uk/r0NKPK7Z025573; dkim=none reason="no signature"; dkim-adsp=none (insecure policy) Message-ID: <51004729.6080809@FreeBSD.org> Date: Wed, 23 Jan 2013 20:25:13 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: creating new user account password. References: <510042DC.6000406@a1poweruser.com> In-Reply-To: <510042DC.6000406@a1poweruser.com> X-Enigmail-Version: 1.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2SBLHVXTHSQESLMEMXVMN" X-Virus-Scanned: clamav-milter 0.97.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2013 20:25:28 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2SBLHVXTHSQESLMEMXVMN Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 23/01/2013 20:06, Fbsd8 wrote: > I know I can create a new user account having a password same as the > user name. After logging in the first time using the user account name > as the password, I want to force the user to create a new password. > Is there a way to do that? You can set the password to expire virtually immediately: pw usermod -n username -p +1m or add the '-p +1m' bit to the 'pw useradd' line used to create the accou= nt. I believe this will mean the user is required to set a new password on login after the password has expired. Might be an idea to test that thou= gh. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey ------enig2SBLHVXTHSQESLMEMXVMN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlEARzAACgkQ8Mjk52CukIxF6ACeOsFfnSgm69oiRW3lCN9EsHPh osEAnjGKU7EWQW73lhf0mbX7/iYrBXn7 =z20C -----END PGP SIGNATURE----- ------enig2SBLHVXTHSQESLMEMXVMN--