From owner-freebsd-questions Mon Oct 21 15:31:15 2002 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 794B637B401 for ; Mon, 21 Oct 2002 15:31:14 -0700 (PDT) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2E9A43E97 for ; Mon, 21 Oct 2002 15:31:13 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.6/8.12.5) with ESMTP id g9LMVD8s043658 for ; Mon, 21 Oct 2002 18:31:13 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.6/8.12.6/Submit) id g9LMVCCI043655; Mon, 21 Oct 2002 18:31:12 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f To: freebsd-questions@freebsd.org Subject: Re: made a mistake with bash path... now i can't login References: <20021021221437.3964.qmail@web20110.mail.yahoo.com> From: Lowell Gilbert Date: 21 Oct 2002 18:31:12 -0400 In-Reply-To: <20021021221437.3964.qmail@web20110.mail.yahoo.com> Message-ID: <44wuobzaof.fsf@be-well.ilk.org> Lines: 32 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bsd Neophyte writes: > --- "DaleCo, S.P.---'the solutions people'" wrote: > > Do you have a passwd for "toor"? > > > > KDK > > no... i don't... > > as for the -m option... > > i tried it but it doesn't work. > > -m Leave the environment unmodified. The invoked shell is your > login shell, and no directory changes are made. As a security > precaution, if the target user's shell is a non-standard shell > (as defined by getusershell(3)) and the caller's real uid is non- > zero, su will fail. > > can someone explain what this means? starting from the "As a security..." > until the end. "if the target user's shell is a non-standard shell": the "target user" is root, and "non-standard" is defined in getusershell(3) (which basically says that it has to be in /etc/shells, which /usr/bin/bash isn't) "and the caller's real uid is non-zero": this means that if you're already root, the target user's shell doesn't have to be "standard" So you're out of luck. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message