From owner-freebsd-questions Mon Oct 21 15:37:26 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 3613A37B401 for ; Mon, 21 Oct 2002 15:37:25 -0700 (PDT) Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id B293C43E65 for ; Mon, 21 Oct 2002 15:37:24 -0700 (PDT) (envelope-from kstewart@owt.com) Received: from owt.com (owt-207-41-94-232.owt.com [207.41.94.232]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id PAA26159; Mon, 21 Oct 2002 15:37:18 -0700 Message-ID: <3DB4819E.8000504@owt.com> Date: Mon, 21 Oct 2002 15:37:18 -0700 From: Kent Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, es-mx MIME-Version: 1.0 To: Lowell Gilbert Cc: 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> <44wuobzaof.fsf@be-well.ilk.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Lowell Gilbert wrote: > 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. > All you have to do is boot to single user and un-fubar your system. It asks what shell and you mount your system and provide root with a good shell. You are seeing one of the reasons that many of us leave root as its default cshell. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message