VectorLinux
November 21, 2014, 09:32:15 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: .bashrc for root  (Read 815 times)
ohw0571
Member
*
Posts: 2


« on: October 15, 2011, 11:07:02 pm »

Hello,

in VL 6.0 Light I have modified root's .bashrc to get a different prompt and certain alias definitions.
On that occasion, I noticed that .bashrc for root is NOT sourced when doing 'su -' while a plain 'su' works as expected!
Sourcing the file by hand does have the desired effect, so it is not a problem with the .bashrc file itself - it is just ignored.
I would be grateful for any hint how to rectify this.

Regards,
ohw0571

Logged
budulay
Packager
Vectorian
****
Posts: 568


NewComer


« Reply #1 on: October 16, 2011, 08:27:21 am »

Maybe this will help - http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html
Logged

VL6.0-Light@MSI MS-1652(AMD TurionX2 ZM-84 2300 MHZ, 4 GB RAM, 250 GB HDD, Nvidia GForce 9600M GT, GIGABYTE AirCruiser N300)
Registered Linux user #473602
SlackBuild Repository for VL7.Not much but it's a start. Join in!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!