From owner-freebsd-isp@FreeBSD.ORG Thu Nov 20 04:45:18 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A652D16A4CE for ; Thu, 20 Nov 2003 04:45:18 -0800 (PST) Received: from sianna.shopkeeper.de (sianna.shopkeeper.de [217.17.196.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 068BC43FD7 for ; Thu, 20 Nov 2003 04:45:16 -0800 (PST) (envelope-from sklauder@trimind.de) Received: from avalon.dobu.local (p5088733A.dip.t-dialin.net [80.136.115.58]) (authenticated bits=128) by sianna.shopkeeper.de (8.12.9/8.12.6) with ESMTP id hAKCjDe8071341; Thu, 20 Nov 2003 13:45:13 +0100 (CET) (envelope-from sklauder@trimind.de) Received: from avalon.dobu.local (localhost.dobu.local [127.0.0.1]) by avalon.dobu.local (8.12.9p2/8.12.5) with ESMTP id hAKCjCID007516; Thu, 20 Nov 2003 13:45:12 +0100 (CET) (envelope-from sklauder@avalon.dobu.local) Received: (from sklauder@localhost) by avalon.dobu.local (8.12.9p2/8.12.9/Submit) id hAKCjC1N007515; Thu, 20 Nov 2003 13:45:12 +0100 (CET) (envelope-from sklauder) Date: Thu, 20 Nov 2003 13:45:12 +0100 From: Sascha Klauder To: Chris Cook Message-ID: <20031120124512.GA7492@trimind.de> References: <3FBCB5EF.3AD2E1EF@tcworks.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FBCB5EF.3AD2E1EF@tcworks.net> User-Agent: Mutt/1.4.1i cc: freebsd-isp@freebsd.org Subject: Re: script to change user's group? X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Nov 2003 12:45:18 -0000 On Thu, Nov 20, 2003 at 06:39:11AM -0600, Chris Cook wrote: > Is there a command line way to change the group that a user belongs to? > We would like to automatically change a user's group when they become > past due on their account. The only way I know how to do this is > chpass. If I knew of a command line way I could write a script. Check out the pw(8) command. Cheers, -sascha