/etc/profile not being sourced
Posted
by
Marc
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Marc
Published on 2011-05-05T09:22:26Z
Indexed on
2013/10/25
10:13 UTC
Read the original article
Hit count: 275
For 11.04, I did a fresh install of my system. Part of that install was to install rvm, which sticks a rvm.sh
in /etc/profile.d/
. This doesn't work as /etc/profile
(which loads each +r in /etc/profile.d/*.sh
) is not being loaded. According to the documentation, the profile is only sourced if bash is run in login. To verify this, I invoked bash --login
, after which rvm
was available.
This has worked for me in previous versions of Ubuntu without any configuration. That is, a fresh install of 10.10 will correctly source profile/.d.
My question is: is there anything I'm doing wrong, or are there some new assumptions being made in Natty that have broken this? My current workaround is to source /etc/profile
in ~/.bashrc
(which is awful as profile is meant to load before bashrc's, but does the trick).
© Ask Ubuntu or respective owner