From owner-freebsd-questions Sun Apr 9 14:22:13 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id OAA06842 for questions-outgoing; Sun, 9 Apr 1995 14:22:13 -0700 Received: from netcom.netcom.com (root@netcom.netcom.com [192.100.81.100]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id OAA06813 for ; Sun, 9 Apr 1995 14:22:09 -0700 Received: by netcom.netcom.com (8.6.12/Netcom) id OAA12869; Sun, 9 Apr 1995 14:21:53 -0700 From: dlr@netcom.com (dlr) Message-Id: <199504092121.OAA12869@netcom.netcom.com> Subject: Re: Su trouble To: rashid@haven.ios.com (Rashid Karimov.) Date: Sun, 9 Apr 1995 14:21:53 -0700 (PDT) Cc: dlr@netcom.com, freebsd-questions@FreeBSD.org In-Reply-To: <199504091845.OAA24417@haven.ios.com> from "Rashid Karimov." at Apr 9, 95 02:45:46 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 778 Sender: questions-owner@FreeBSD.org Precedence: bulk > > I was messing around with trying to switch to tcsh and now can't su > > to root. > > > > I get this message: > > > > su > > Password: > > su: permission denied (shell). > > > > > > How do I get out of this? I can boot onto another disk with almost mirror > > image, and can boot into single user mode but I'm not quite certain what to > > fix. > > If perms are correct on tcsh , most probably the tcsh wasn't listed > in /etc/shells. I'm not sure if FreeBSD imposes such strict limitations > on shell for root , but it's quite possible IMHO I figured out what was wrong. Looking in the passwd file the root shell had gotten changed. I didn't use the chpass command correctly. It was simple to fix once I knew what I had done wrong. Thanks all for the help dave