Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2002 15:37:18 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: made a mistake with bash path... now i can't login
Message-ID:  <3DB4819E.8000504@owt.com>
References:  <20021021221437.3964.qmail@web20110.mail.yahoo.com> <44wuobzaof.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help


Lowell Gilbert wrote:
> Bsd Neophyte <bsdneophyte@yahoo.com> writes:
> 
> 
>>--- "DaleCo, S.P.---'the solutions people'" <daleco@daleco.biz> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DB4819E.8000504>