From owner-freebsd-questions Wed Nov 18 14:08:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA15674 for freebsd-questions-outgoing; Wed, 18 Nov 1998 14:08:56 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA15669 for ; Wed, 18 Nov 1998 14:08:52 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.053 #6) id 0zgEox-0003pA-00; Wed, 18 Nov 1998 21:07:27 +0000 Date: Wed, 18 Nov 1998 21:07:27 +0000 From: Ben Smithurst To: sporkl@ix.netcom.com Cc: Alex Knowles , "Questions (E-mail)" Subject: Re: I can't believe I am soo stupid Message-ID: <19981118210727.B14506@scientia.demon.co.uk> References: <615CAC0140CED111AF1500805FEDDB8A094AE8@ns.new-mediacom.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: User-Agent: Mutt/0.94.12i (FreeBSD/3.0-CURRENT) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Spike Gronim wrote: > If you have "sudo" on your system, type "sudo my_favorite_editor > /etc/passwd" and change root's shell to /usr/local/bin/tcsh, which is > where tcsh usually gets installed to. If you edit /etc/passwd, you'll have to rebuild /etc/pwd.db as well. And make sure /etc/{master.,}passwd are in sync (don't know what would happen if they weren't). Would just ``sudo vipw'' work to do it the right way? > Or, you can boot to single-user mode (the -s option at boot time) and hit > enter when it asks you for a shell. Then you can edit /etc/passwd and > reboot the system. Or use ``shutdown now'' to drop down to single user, that way you shouldn't need to reboot :-) This assumes you have put yourself into group operator, so you have exec permission for /sbin/shutdown -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message