Date: 21 Oct 2002 18:31:12 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com> To: freebsd-questions@freebsd.org Subject: Re: made a mistake with bash path... now i can't login Message-ID: <44wuobzaof.fsf@be-well.ilk.org> In-Reply-To: <20021021221437.3964.qmail@web20110.mail.yahoo.com> References: <20021021221437.3964.qmail@web20110.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. 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?44wuobzaof.fsf>