Re: Why use "su -" rather than "su"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 7:58 AM +0100 7/18/05, Paul Howarth wrote:
>On Sun, 2005-07-17 at 12:27 -0400, Tony Nelson wrote:
>> At 2:13 AM -0500 7/17/05, John Bray wrote:
>>
>> >here's a classic case of how to realllly screw up. su - to root. echo
>> >$PATH note that some dolt has managed to set root's path to include
>> >/usr/local/bin BEFORE the official sbins! want to guess how this
>> >stupidity is eventually going to bite us all? :-(
>>
>> Mine isn't quite so bad, but it does turn out to have the pattern
>> "foo/sbin", "foo/bin".  I expect that you're saying that it should be all
>> sbins, then the bins.  I think I'll change it to that.
>
>The arrangement you've described is the normal default; no need to
>change it.
>
>For instance, root's path here is:
>
>/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:
>/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

Hmm.  Seems like it would be better to do it the way pathmunge() would have
it, with all the "sbins" together before any of the "bin"s.

:( I'm sorry that I won't be here for any reply, but I'll get it next week. :)
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
      '                              <http://www.georgeanelson.com/>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux