Date: Tue, 18 Feb 1997 16:59:56 -0800 (PST) From: Doug White <dwhite@gdi.uoregon.edu> To: Brandon Gillespie <brandon@cold.org> Cc: freebsd-questions@freebsd.org Subject: Re: su to root changes directory?? Message-ID: <Pine.BSI.3.94.970218165906.8926G-100000@localhost> In-Reply-To: <Pine.NEB.3.95.970218103913.15220B-100000@cold.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 18 Feb 1997, Brandon Gillespie wrote: > Help.. Has anything changed in the behaviour of 'su' between 2.1.x and > 2.2?? I just changed a system (through a clean install) from 2.1.0 to > 2.2. Previously when I would su it would leave me in the same directory.. > But now it keeps moving me to root's home directory. I have searched > everywhere for something that may be doing this--I have removed every > single rc and login file I can find (well, I moved them to a /tmp/x > directory so they wouldn't be loaded--the files include every .x file in > /root and /etc/csh*) and it STILL changes to /root. I'm running csh as > root's shell, altho I even tried switching to /bin/sh and > /usr/local/bin/tcsh > > Any ideas WHY its doing this, and how I can STOP IT? Make sure you are running 'su -m' instead of just 'su'. This way, your environment is preserved across the su. This was set up in the system default .cshrc as an alias on my machine. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.970218165906.8926G-100000>