Date: Wed, 30 Mar 2011 09:19:43 +0400 From: Yuri Pankov <yuri.pankov@gmail.com> To: Michael <mlmichael70@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: how to enforce password change at first login Message-ID: <20110330051943.GD3074@darklight.org.ru> In-Reply-To: <4D92BB33.1030201@gmail.com> References: <4D92BB33.1030201@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 30, 2011 at 06:10:11AM +0100, Michael wrote: > 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? Something like: # pw usermod <username> -p -1 Anyway, see pw(8). HTH, Yuri
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110330051943.GD3074>