From owner-freebsd-questions Fri Sep 6 22: 1:29 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 7A76837B400 for ; Fri, 6 Sep 2002 22:01:23 -0700 (PDT) Received: from vectors.cx (manifold.vectors.cx [64.163.147.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02C2443E3B for ; Fri, 6 Sep 2002 22:01:23 -0700 (PDT) (envelope-from monkey@vectors.cx) Received: from vectors.cx (7a05e59348988df2ec82de53fcf43769@localhost [127.0.0.1]) by vectors.cx (8.12.4/8.12.4) with ESMTP id g8753F2e084547; Fri, 6 Sep 2002 22:03:15 -0700 (PDT) (envelope-from monkey@vectors.cx) Received: (from monkey@localhost) by vectors.cx (8.12.4/8.12.4/Submit) id g8753Fha084546; Fri, 6 Sep 2002 22:03:15 -0700 (PDT) (envelope-from monkey) Date: Fri, 6 Sep 2002 22:03:15 -0700 From: Adam Weinberger To: mingo lu Cc: Matthew Seaman , freebsd-questions@FreeBSD.ORG Subject: Re: freebsd 4.5 and bash for root shell Message-ID: <20020907050315.GZ76893@vectors.cx> References: <20020906070105.GA34657@happy-idiot-talk.infracaninophi> <20020907044324.8528.qmail@web14801.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020907044324.8528.qmail@web14801.mail.yahoo.com> X-Editor: Vim 6.1 http://www.vim.org X-Mailer: Mutt 1.5 http://www.mutt.org X-URL: http://www.vectors.cx http://www.crackula.com User-Agent: Mutt/1.5.1i 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 .gmon is the standard profiling extension. i am not sure what you mean by turn "out" the profiling features, but rebuild bash with the profiling turned off. alternatively, you should install bash from the freebsd ports tree. simply do: pkg_add -r bash that will fetch bash, install it to the PROPER location (/usr/local/bin), and add it to the /etc/group file. then, for user toor, you can make its shell /usr/local/bin/bash -Adam >> (09.06.2002 @ 2143 PST): mingo lu said, in 1.9K: << > thanks: > > Well, I use the su utility came with the system. All i > did was installation of /bin/bash for root user > account toor. I used "vipw" for editting, then I am > getting that trouble. Once i go back to /bin/sh, the > file su.gmon will stop showing up ... > > Can't figure out why ... > > btw, i did turn out the profilling features whne i > compiled the bash, could that be the problem? > > > --- Matthew Seaman > wrote: > > On Thu, Sep 05, 2002 at 01:32:11PM -0700, mingo lu > > wrote: > > > > > thanks. Well, the warnings aare gone, but the file > > > "su.gmon" is still there, i deleted so amny times > > ... > > > > Looks like your su executable has been compiled with > > profiling > > support. That's not a stunningly good idea for > > stuff in general use, > > especially for a setuid executable like su(1). I > > assume that you're > > using su(1) to become root, which is why the .gmon > > file is always > > reappearing. > > > > See gprof(1) for details of profiling executables. > > > > Is this the system su(1) or the su(1) that comes > > with GNU sh-utils? I > > ask simply because I can't see how you could > > accidentally turn on > > profiling for just su(1) in the main system without > > knowing about it. > > > > Cheers > > > > Matthew > > > > -- > > Dr Matthew J Seaman MA, D.Phil. > > 26 The Paddocks > > > > Savill Way > > > > Marlow > > Tel: +44 1628 476614 > > Bucks., SL7 1TH UK > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of > > the message > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes > http://finance.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > >> end of "Re: freebsd 4.5 and bash for root shell" from mingo lu << -- "Oh good, my dog found the chainsaw." -Lilo, "Lilo & Stitch" Adam Weinberger adam@vectors.cx http://vectors.cx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message