Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed RVM (ruby version manager) on a production server (with CentOS).

I have installed it as a user (e.g. foobar) and not as root. (Is this a bad idea?)

Now everything works correctly except that whenever I ssh to my server (e.g. ssh RVM doesn't get loaded and I always have to run a login shell (e.g. bash --login) to start using the correct version of ruby and gems.

.bash_profile and .bashrc for user foobar seems to be properly configured.

I would like to know if this is my fault (a bad configuration), or everyone using RVM is facing this issue.

share|improve this question
Exactly how did you install rvm? – Michael Hampton Feb 16 '13 at 9:31
$ \curl -L | bash -s stable --ruby (as seen here: – collimarco Feb 16 '13 at 9:51
I have executed that command through ssh (ssh and then I executed that command from the shell; nothing else). – collimarco Feb 16 '13 at 9:53
So what you need to sort out is: why you don't get a login shell when you ssh to the remote host. Contact the system administrator of the remote machine. – Michael Hampton Jul 10 '13 at 23:13

I do not have this problem on my CentOS 6. You need to have a login shell for rvm (if you have installed it as root) installs a script under /etc/profile.d. This is read by login shells only.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.