From owner-freebsd-questions@FreeBSD.ORG Wed Mar 30 05:10: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 9FBCC1065670 for ; Wed, 30 Mar 2011 05:10:14 +0000 (UTC) (envelope-from mlmichael70@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2F8398FC24 for ; Wed, 30 Mar 2011 05:10:13 +0000 (UTC) Received: by wyf23 with SMTP id 23so932012wyf.13 for ; Tue, 29 Mar 2011 22:10:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=IyoTp6EBmmq3hPgtF9/tg54p+LFCXEF4q+nnVf+Od1M=; b=xTEcKS2pTllW6LgZXildHAOZrEQYujeZh+EN6ferb6YRsI0Q+sPI8tXOb2Ika0wqqm YdllabkDtppEoLLw/o/z1eVlG2hxy77iQx/IODSLKxy6N3hos6Za+7/E60XX3Ojk0M0r CsykGBxwVHzRJn4TYFbOvt5V9m6RLtXTYNaA8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=HjhR/KNDDo9NFNSaZBiJupb0gVW0AuyiZ1Z4TuWB5ZvplivrtgE5uxtoFnPnmkyaoE kjqTeYYY0PH86BdBb61io7AzJ9snRlqXITUQJPfz5rW30NXTuldpb1iJ4yWqLDgIFRNn yQnjQrgdz4EElJbt8Vq9s7e0fyIilSBpOgDTk= Received: by 10.227.150.207 with SMTP id z15mr714500wbv.149.1301461813017; Tue, 29 Mar 2011 22:10:13 -0700 (PDT) Received: from prime.nonspace (adsl-178-78-102-245.karoo.kcom.com [178.78.102.245]) by mx.google.com with ESMTPS id b20sm2795716wbb.50.2011.03.29.22.10.12 (version=SSLv3 cipher=OTHER); Tue, 29 Mar 2011 22:10:12 -0700 (PDT) Message-ID: <4D92BB33.1030201@gmail.com> Date: Wed, 30 Mar 2011 06:10:11 +0100 From: Michael User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110317 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: how to enforce password change at first login 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: Wed, 30 Mar 2011 05:10:14 -0000 Hi, How can I enforce a user to change his password at first login? I want to set up ssh access for my friends but I don't want to know their passwords. And I don't trust they will change it just because I've asked to do so. I was thinking I can create account with random password and provide it to my users. Then the system would enforce password change at first login. Any clues, please?