Why use "su -" rather than "su"

Tony Nelson tonynelson at georgeanelson.com
Mon Jul 18 19:22:37 UTC 2005


At 1:42 AM -0500 7/18/05, Jeff Vian wrote:
 ...
>Look in /etc/profile.  That is where the default path is munged and the
>sbin directories are added for root and the /usr/X11R6/bin is added for
>all users.  The sequence there puts /usr/local/sbin as the first in the
>path for root.
>
>This is not the only place PATH is set, but I can't find the rest of it
>right now except for $HOME/.bash_profile

I'm pretty sure from my reading that this isn't it.  Note that pathmunge()
would put all the "sbin"s next to each other at the front of the path.  Not
that I've run it under a debugger yet.
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
      '                              <http://www.georgeanelson.com/>




More information about the fedora-list mailing list