From owner-freebsd-questions@FreeBSD.ORG Sat Mar 20 10:46:55 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 AC68516A4CE for ; Sat, 20 Mar 2004 10:46:55 -0800 (PST) Received: from messenger.m00is.net (messenger.m00is.net [62.3.100.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37B0B43D2F for ; Sat, 20 Mar 2004 10:46:55 -0800 (PST) (envelope-from edmund@m00is.net) Received: from alpha (openwall.m00is.net [62.3.100.169]) by messenger.m00is.net (Postfix) with ESMTP id 70B9680EB; Sat, 20 Mar 2004 18:44:36 +0000 (GMT) From: "Edmund Craske" To: "'Jez Hancock'" , "'Eric Yellin'" Date: Sat, 20 Mar 2004 18:46:53 -0000 Message-ID: <001901c40eab$b6a3ef90$0464a8c0@alpha> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 In-Reply-To: <20040320182317.GA59236@users.munk.nu> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal cc: 'freeBSD' 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 18:46:55 -0000 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? Ed > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Jez Hancock > Sent: 20 March 2004 18:23 > To: Eric Yellin > Cc: freeBSD > Subject: Re: problem with su > > > On Sat, Mar 20, 2004 at 07:41:53PM +0200, Eric Yellin wrote: > > When I "su -m" and login as root, all I get in the prompt > is a % sign. > > My normal user shell is tcsh and the prompt looks like this: > > [eric@www4]/home/eric(29): but this is not kept when I su > -m. How can > > I change this? > > Have you tried copying ~eric/.cshrc to ~root/.cshrc? > > -- > 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 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"