From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 13:53:03 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 6074816A4BF for ; Mon, 25 Aug 2003 13:53:03 -0700 (PDT) Received: from shrike.submonkey.net (pc3-cdif2-5-cust222.cdif.cable.ntl.com [81.101.152.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68ECB43FBD for ; Mon, 25 Aug 2003 13:53:02 -0700 (PDT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.20) id 19rOKj-000EWd-1r; Mon, 25 Aug 2003 21:53:01 +0100 Date: Mon, 25 Aug 2003 21:53:01 +0100 From: Ceri Davies To: Charles Howse Message-ID: <20030825205300.GK2947@submonkey.net> References: <001001c36b4a$134cad50$04fea8c0@moe> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z9sQuz+HmDh2hVO4" Content-Disposition: inline In-Reply-To: <001001c36b4a$134cad50$04fea8c0@moe> User-Agent: Mutt/1.5.4i Sender: Ceri Davies cc: freebsd-questions@freebsd.org Subject: Re: Using chpass 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: Mon, 25 Aug 2003 20:53:03 -0000 --z9sQuz+HmDh2hVO4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 25, 2003 at 03:47:15PM -0500, Charles Howse wrote: > Hi, > I'm trying to learn how to use chpass to change a user's name. > I'm not getting anywhere, I've read the man page and Googled, but can't > find an example. >=20 > I want to change toor's name to 'Nobody Important'. > I do: > # chpass -a toor::0:0:Nobody Important:/root:/sbin/nologin toor > And I get: > Corrupted entry. >=20 > Can someone please set me straight? chpass -a "toor::0:0::0:0:Nobody Important:/root:/sbin/nologin" toor Note, however, that you're setting the password for this user to a null password, allowing any local user in wheel to "su -m toor" if you have added /sbin/nologin to /etc/shells. Ceri --=20 User: DO YOU ACCEPT JESUS CHRIST AS YOUR PERSONAL LORD AND SAVIOR? Iniaes: Sure, I can accept all forms of payment. -- www.chatterboxchallenge.com --z9sQuz+HmDh2hVO4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/SncsocfcwTS3JF8RAjKGAKCQopIyiSzomCSzNi7J8pxncYTuXQCfc4RS 4n1e5IlgsODnVRXrahWwoWk= =OybW -----END PGP SIGNATURE----- --z9sQuz+HmDh2hVO4--