From owner-freebsd-questions Fri Sep 6 0: 1:18 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 8975337B401 for ; Fri, 6 Sep 2002 00:01:15 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C39F43E3B for ; Fri, 6 Sep 2002 00:01:14 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g8671AGk038332; Fri, 6 Sep 2002 08:01:10 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g86715K9038331; Fri, 6 Sep 2002 08:01:05 +0100 (BST) Date: Fri, 6 Sep 2002 08:01:05 +0100 From: Matthew Seaman To: mingo lu Cc: Marc Schneiders , freebsd-questions Subject: Re: freebsd 4.5 and bash for root shell Message-ID: <20020906070105.GA34657@happy-idiot-talk.infracaninophi> References: <20020905222158.B8295-100000@voo.doo.net> <20020905203211.99539.qmail@web14806.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020905203211.99539.qmail@web14806.mail.yahoo.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 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