[svlug] Paths broken as root

Jonathan Sergent sergent at kgb.etla.net
Sun Nov 22 20:22:01 PST 1998


In message <Pine.LNX.4.05.9811230334370.30194-100000 at vitelus.com>, aaronl at vitel
us.com writes:
 ] Thanks - This works great. Judging from the '-', this looks like the
 ] reason why I have seen some bash processes running with a minus preceding
 ] their names (These are probably the ones that have the paths set up
 ] right). I also notice that when using su -, you can logout like from a
 ] normal shell, but without the -, you are forced to use exit (^D works in
 ] either case :).
 ] 
 ] Would it be considered safe to set up a bash alias so that su always means
 ] su -?

Should be able to just put the stuff that you absosmurfly need in
root's .profile or .bash_profile.

The "-" you see at the start of argv[0] also happens to mean login shell, 
but it's not for the same reasons.


--jss.

--
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe
see http://www.svlug.org/mdstuff/lists.shtml for posting guidelines.



More information about the svlug mailing list