Well, $ su alone simply switches your uid and gid to root, w/o going through the full login process. As a result, it doesn't run root's .bash_profile file, and if you do a # set [lots of output] you'll also see lots of variables that remain the userid you su'd from, such as your $USER variable, and your $MAILDIR variable.
$ su - gives you a more robust user switch. That doesn't mean you should use it all the time. It may be more convenient to keep your userid variables. === Al --- Desmond Lee <[EMAIL PROTECTED]> wrote: > Hi Matt > > Thanks for the reply. I just did what you said and did an su - instead of su > root and then did './install.sh' and things worked :) > > What is the diff between su - and su root? > > Anyways, it worked so i'm happy. > > Thanks a lot guys > > Desmond > > >From: "Matt" <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: <[EMAIL PROTECTED]> > >CC: <[EMAIL PROTECTED]> > >Subject: RE: ldconfig in path? > >Date: Mon, 19 Aug 2002 16:40:03 -0400 (EDT) > > > >Desmon: > > > >type "whereis ldconfig" That will show you where it is. I think you will > >find it in /usr/sbin Then just export it to your path variable. > >Also, to avoid this problem in the future you should be using "su -" and > >not "su" > > > > > > >Hi there > > >I'm trying to install Sophos Antivirus software for redhat. I'm running > > >>into>a problem when i try and execute ./install.sh. It gives me the > >following > > >message: > > > > > >Error: Could not find 'ldconfig' in path. > > >Does this mean i have to go into the /etc/profile and add something to my > > >path? I cannot find where ldconfig is or even what that is as a matter > >of > > >fact. > > > > > >Does anyone have any ideas or has done this before?> > > > > > >Thanks > > > > > > > > > >-- > >redhat-list mailing list > >unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > >https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list