Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Mar 2004 19:04:13 +0000
From:      Jez Hancock <jez.hancock@munk.nu>
To:        Edmund Craske <edmund@m00is.net>
Cc:        'Eric Yellin' <eric@migvan.co.il>
Subject:   Re: problem with su
Message-ID:  <20040320190413.GA60717@users.munk.nu>
In-Reply-To: <001901c40eab$b6a3ef90$0464a8c0@alpha>
References:  <20040320182317.GA59236@users.munk.nu> <001901c40eab$b6a3ef90$0464a8c0@alpha>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040320190413.GA60717>