From owner-freebsd-questions@FreeBSD.ORG Sat Mar 20 11:04:21 2004 Return-Path: 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 7AAEB16A4CE for ; Sat, 20 Mar 2004 11:04:21 -0800 (PST) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20C8843D1F for ; Sat, 20 Mar 2004 11:04:21 -0800 (PST) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.30; FreeBSD) id 1B4llV-000FrH-TI; Sat, 20 Mar 2004 19:04:13 +0000 Date: Sat, 20 Mar 2004 19:04:13 +0000 From: Jez Hancock To: Edmund Craske Message-ID: <20040320190413.GA60717@users.munk.nu> Mail-Followup-To: Edmund Craske , 'Jez Hancock' , 'Eric Yellin' , 'freeBSD' References: <20040320182317.GA59236@users.munk.nu> <001901c40eab$b6a3ef90$0464a8c0@alpha> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001901c40eab$b6a3ef90$0464a8c0@alpha> User-Agent: Mutt/1.5.6i Sender: Jez Hancock cc: 'Jez Hancock' cc: 'freeBSD' cc: 'Eric Yellin' Subject: Re: problem with su X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2004 19:04:21 -0000 On Sat, Mar 20, 2004 at 06:46:53PM -0000, Edmund Craske wrote: > This isn't right, when using the -m flag su uses your current > environment, keeping your shell, prompt etc the same as in your > own account. All I can think of is that it executes something > when it opens the new shell which changes it, which shouldn't > be root's cshrc. Perhaps some shell script conditional gubbins > around the prompt statement in the user's cshrc? Mmm you're right - personally I do: su - to su from my normal to root user and I have ~root/.cshrc symlinked to ~user/.cshrc (ditto for most other dotrc files :P). Works for me. -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - Another FreeBSD Diary http://ipfwstats.sf.net/ - ipfw peruser traffic logging