Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site cuuxb.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!mgnetp!ltuxa!cuuxb!crom
From: crom@cuuxb.UUCP (Michael Crom)
Newsgroups: net.unix,net.micro.att
Subject: Re: $PATH in su mode under SV.2
Message-ID: <246@cuuxb.UUCP>
Date: Thu, 15-Aug-85 09:31:58 EDT
Article-I.D.: cuuxb.246
Posted: Thu Aug 15 09:31:58 1985
Date-Received: Sun, 18-Aug-85 01:32:40 EDT
References: <1246@sjuvax.UUCP>
Organization: AT&T Technologies CSD, Lisle, Il.
Lines: 23
Xref: watmath net.unix:5378 net.micro.att:458


One way to set the PATH variable is to create a /.profile.
In it you would put something like this:


PATH=/bin:/usr/bin:/etc:/usr/lbin:/whatever/wherever::
export PATH

Then, instead of just using "su", use "su -".  The minus sign says
to invoke the that users .profile (which will set the PATH in this case).
Unfortunately, it also puts you in roots home directory -- /

If you had source for su, you could change change a define to whatever you
wanted:

#define SUPATH "PATH=whatever"

But most 3b2 users don't have source, so you're stuck with the first method.



					Mike Crom
					Lisle, Il