From owner-freebsd-questions@FreeBSD.ORG Wed Aug 27 11:15:13 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6247E16A4BF for ; Wed, 27 Aug 2003 11:15:13 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73A6243FE0 for ; Wed, 27 Aug 2003 11:15:12 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.12.9/8.12.9) with ESMTP id h7RIFBOg017877; Wed, 27 Aug 2003 14:15:11 -0400 (EDT) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.12.9/8.12.9/Submit) id h7RIFAvP017876; Wed, 27 Aug 2003 14:15:10 -0400 (EDT) From: Jerry McAllister Message-Id: <200308271815.h7RIFAvP017876@clunix.cl.msu.edu> To: david+dated+1062438732.fcbda4@skytracker.ca (David Banning) Date: Wed, 27 Aug 2003 14:15:10 -0400 (EDT) In-Reply-To: <20030827175210.GA30966@skytrackercanada.com> from "David Banning" at Aug 27, 2003 01:52:10 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: how to reset password with nologin shell? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2003 18:15:13 -0000 > > If I have a user that has a nologin shell and they forget > thier password, is there a way to give them a new password? > > Right now I am resetting their password to nil, then > giving them a shell like /bin/sh, logging in on their behalf, > setting up a password, and then changing their shell back > to /bin/nologin. > > I would like to elliminate the noshell to shell and then > back to noshell part. If you have root - you must have, just type 'passwd USERID' Substitute the real user name for USERID and don't use the quotes. Root can set password for any user - but make sure you put a username because if you don't, you will set root's password. ////jerry