My co-worker installed multi-user RVM on our dev server. I'm not sure how he did it, but it is not working how I would expect. Anyway, RVM seems to be loaded for my individual user, but I don't have permission to install rubies or gems. Here is the error I get while trying to install a gem:
You don't have write permissions into the /usr/local/rvm/gems/ruby-1.9.3-p0 directory.
The directory is owned by root and group rvm.
I upgraded/installed the latest version (curl -L get.rvm.io | sudo bash -s stable), which seemed to upgrade fine, but didn't fix the problem.
> My co-worker installed multi-user RVM on our dev server. I'm not sure how > he did it, but it is not working how I would expect. Anyway, RVM seems to > be loaded for my individual user, but I don't have permission to install > rubies or gems. Here is the error I get while trying to install a gem:
> You don't have write permissions into the > /usr/local/rvm/gems/ruby-1.9.3-p0 directory.
> The directory is owned by root and group rvm.
> I upgraded/installed the latest version (curl -L get.rvm.io | sudo bash > -s stable), which seemed to upgrade fine, but didn't fix the problem.
> You received this message because you are subscribed to the Google > Groups "rvm (Ruby Version Manager)" group. > To post to this group, send email to rubyversionmanager@googlegroups.com > To unsubscribe from this group, send email to > rubyversionmanager+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/rubyversionmanager?hl=en
It does not look like my user is part of the rvm group. It was my understanding from the installation docs that the RVM install script made RVM available to all users on the system. Is this not the case? How can I give everyone access to install rubies/gems? Do I need to manually go through and add each user to the rvm group?
Yes. Every user you'd like to be able to use a system-wide RVM needs to be part of the rvm group. The rvm group has permissions to install things to the directories for which you're getting access denied errors. If you need to do this for a bunch of users, it would take a few seconds to do this with a shell script so you wouldn't have to run the command individually for every user.
On Mon, Apr 23, 2012 at 1:08 PM, Andrew Havens <misbehav...@gmail.com>wrote:
> It does not look like my user is part of the rvm group. It was my > understanding from the installation docs that the RVM install script made > RVM available to all users on the system. Is this not the case? How can I > give everyone access to install rubies/gems? Do I need to manually go > through and add each user to the rvm group?
> You received this message because you are subscribed to the Google > Groups "rvm (Ruby Version Manager)" group. > To post to this group, send email to rubyversionmanager@googlegroups.com > To unsubscribe from this group, send email to > rubyversionmanager+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/rubyversionmanager?hl=en
For future reference for anyone who experiences this in the future...
To append a user to the rvm group: *sudo usermod -a -G rvm yourusername* * * To see which users are part of the rvm group: *grep rvm /etc/group** * * * It would be nice if this step was part of the documentation (or maybe called out a little more clearly for those of us who missed this step).
Any ideas on what to do for a system where users will be coming in from LDAP, and there is no way to know how many, or who, or when they will need access to RVM in the future?
On Monday, April 23, 2012 3:12:38 PM UTC-4, Remear wrote:
> Yes. Every user you'd like to be able to use a system-wide RVM needs to be > part of the rvm group. The rvm group has permissions to install things to > the directories for which you're getting access denied errors. If you need > to do this for a bunch of users, it would take a few seconds to do this > with a shell script so you wouldn't have to run the command individually > for every user.
> On Mon, Apr 23, 2012 at 1:08 PM, Andrew Havens <misbehav...@gmail.com>wrote:
>> It does not look like my user is part of the rvm group. It was my >> understanding from the installation docs that the RVM install script made >> RVM available to all users on the system. Is this not the case? How can I >> give everyone access to install rubies/gems? Do I need to manually go >> through and add each user to the rvm group?
>> You received this message because you are subscribed to the Google >> Groups "rvm (Ruby Version Manager)" group. >> To post to this group, send email to rubyversionmanager@googlegroups.com >> To unsubscribe from this group, send email to >> rubyversionmanager+unsubscribe@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/rubyversionmanager?hl=en
The installation asks you to read rvm notes and rvm requirements. That's where this information is listed. After every rvm install on any system, please read rvm notes and rvm requirements and they often contain up-to-date and crucial information for things you need to do to for your installation to function properly.
Please also note that the usermod command options differ between Linux distros so be sure to read the manual for your command.
On Mon, Apr 23, 2012 at 2:18 PM, Andrew Havens <misbehav...@gmail.com>wrote:
> For future reference for anyone who experiences this in the future...
> To append a user to the rvm group: > *sudo usermod -a -G rvm yourusername* > * > * > To see which users are part of the rvm group: > *grep rvm /etc/group** > * > * > * > It would be nice if this step was part of the documentation (or maybe > called out a little more clearly for those of us who missed this step).
> You received this message because you are subscribed to the Google > Groups "rvm (Ruby Version Manager)" group. > To post to this group, send email to rubyversionmanager@googlegroups.com > To unsubscribe from this group, send email to > rubyversionmanager+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/rubyversionmanager?hl=en
I don't have much experience with LDAP so my only recommendation is for you to try to find a way to, A) hook up your LDAP user creation so you can assign users to local linux groups, or, B) write a script to look up users that are in an LDAP group named rvm_win and add all of them to the local linux machine's rvm group. I'm sure there's a way to do the former.
Keep me posted on your solution when you get something working.
On Mon, Apr 23, 2012 at 2:33 PM, Erk <erik.ols...@gmail.com> wrote: > Any ideas on what to do for a system where users will be coming in from > LDAP, and there is no way to know how many, or who, or when they will need > access to RVM in the future?
> On Monday, April 23, 2012 3:12:38 PM UTC-4, Remear wrote:
>> Yes. Every user you'd like to be able to use a system-wide RVM needs to >> be part of the rvm group. The rvm group has permissions to install things >> to the directories for which you're getting access denied errors. If you >> need to do this for a bunch of users, it would take a few seconds to do >> this with a shell script so you wouldn't have to run the command >> individually for every user.
>> On Mon, Apr 23, 2012 at 1:08 PM, Andrew Havens <misbehav...@gmail.com>wrote:
>>> It does not look like my user is part of the rvm group. It was my >>> understanding from the installation docs that the RVM install script made >>> RVM available to all users on the system. Is this not the case? How can I >>> give everyone access to install rubies/gems? Do I need to manually go >>> through and add each user to the rvm group?
>>> You received this message because you are subscribed to the Google >>> Groups "rvm (Ruby Version Manager)" group. >>> To post to this group, send email to rubyversionmanager@** >>> googlegroups.com <rubyversionmanager@googlegroups.com> >>> To unsubscribe from this group, send email to >>> rubyversionmanager+**unsubscribe@googlegroups.com<rubyversionmanager%2Bunsu bscribe@googlegroups.com> >>> For more options, visit this group at >>> http://groups.google.com/**group/rubyversionmanager?hl=en<http://groups.google.com/group/rubyversionmanager?hl=en>
> You received this message because you are subscribed to the Google > Groups "rvm (Ruby Version Manager)" group. > To post to this group, send email to rubyversionmanager@googlegroups.com > To unsubscribe from this group, send email to > rubyversionmanager+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/rubyversionmanager?hl=en