su'ing not sourcing .bash_profile
    Peter Cornelius 
    pcc at gmx.net
       
    Fri Apr 24 20:34:50 UTC 2009
    
    
  
Hi,
> > When I am logged in as a non-root user and I try to become root by
> > entering "su" and typing the root password, the resulting bash prompt
> > does not reflect the contents of /root/.bash_profile
> Because .bash_profile is only seen on login, not on 'su'.  Put
> it in .bashrc which is read when the shell is invoked.
su -
maybe? If you can live with ending up in ~root/, of course ;-)
Rgds.,
Peter.
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
    
    
More information about the freebsd-questions
mailing list