On Sun, Jan 5, 2014 at 9:28 AM, Tanstaafl <[email protected]> wrote: > Not sure what I'm missing... > > I login as normal user, then su - to root... > > I've created /root/.bashrc, and added the following: > > export PATH="${PATH}:/path/I/want/to/add" > > If I logout, then su - back into root, shouldn't I see the new path? > > Manually exporting it during the session works, so obviously I'm missing > something... >
Personally, I had to create /root/.bash_profile for .bashrc: ~ # cat .bash_profile # /etc/skel/.bash_profile # This file is sourced by bash for login shells. The following line # runs your .bashrc and is recommended by the bash info pages. [[ -f ~/.bashrc ]] && . ~/.bashrc -- Alecks Gates

