[NTLUG:Discuss] Re: SuSE 9 or 9.1 PATH environment changes after su
terry
kj5zr at yahoo.com
Fri Sep 10 11:06:31 CDT 2004
Bryan J. Smith wrote:
> On Fri, 2004-09-10 at 00:44, Ralph Green, Jr wrote:
>
>>Howdy,
>> Another list member has told me off-list that he does not believe me
>>when I told him that the PATH environment variable changed after I did
>>an su to root. I tried this on SuSE 9 and 9.1 and I did not pass any
>>parameters to the su command(i.e., su, not su -). Can anyone else here
>>tell me what their SuSE system does? If you have tweaked your system to
>>change this behavior from it's default, then please tell me that, too.
>>Good day,
>>Ralph
>
>
> I said the command must be aliased on whatever distribution he is using.
> I think Mandrake aliases "su" to "su -" by default.
>
> I am very curious to see the results of:
> alias | grep su
>
> On different distributions as both a regular and superuser.
>
> -- Bryan
>
> P.S. Mr. Green asserts that Red Hat is "broken" because it does not
> alias "su" to "su -" by default.
>
I'm thinking that aliasing su - to su is pretty handy because I, for
one, find no need to just use su without -
My question is, (and I know I'm probably showing my ignorance here,
but), in what case would it be better to use su without - ?
--
test everything; hold fast what is good,
More information about the Discuss
mailing list