From owner-freebsd-security@FreeBSD.ORG Thu Jul 8 15:48:05 2004 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F02A16A4CE for ; Thu, 8 Jul 2004 15:48:05 +0000 (GMT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id D257C43D2D for ; Thu, 8 Jul 2004 15:48:03 +0000 (GMT) (envelope-from roam@ringlet.net) Received: (qmail 25169 invoked from network); 8 Jul 2004 15:44:20 -0000 Received: from unknown (HELO straylight.m.ringlet.net) (217.75.134.254) by gandalf.online.bg with SMTP; 8 Jul 2004 15:44:20 -0000 Received: (qmail 43943 invoked by uid 1000); 8 Jul 2004 15:47:54 -0000 Date: Thu, 8 Jul 2004 18:47:53 +0300 From: Peter Pentchev To: Brandon Grace Message-ID: <20040708154753.GA799@straylight.m.ringlet.net> Mail-Followup-To: Brandon Grace , freebsd-security@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cWoXeonUoKmBZSoM" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: freebsd-security@freebsd.org Subject: Re: Root users shell == no existant shell /bin/bash X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2004 15:48:05 -0000 --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 08, 2004 at 10:29:58AM -0500, Brandon Grace wrote: > I made a mistake setting my shell and have set the root users shell to > /bin/bash instead of /bin/sh. I am curiuos if anyone knows how to fix thi= s. > The machines is FreeBSD 4.8-RELEASE-p4 and does not have sudo only su. Reboot the machine in single-user mode - press Space or anything but Enter at the spinning loader prompt, then type 'boot -s'. After that, mount the rest of the filesystems (if necessary) by 'mount -a', run 'vipw' (or 'chsh -s /bin/sh root' directly) and fix your mistake. I think this was documented somewhere in the FAQ or the Handbook, but right now I can't find it. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If wishes were fishes, the antecedent of this conditional would be true. --cWoXeonUoKmBZSoM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA7Wyp7Ri2jRYZRVMRApZ5AJwMU/4irLqqLzJRbGYdVJG3p9+EEQCgj4hQ F0k9w6ONNy7NW8a5CGYAFI8= =ux5l -----END PGP SIGNATURE----- --cWoXeonUoKmBZSoM--