[Rubygems-developers] Any experiences managing gems without root access?

Eric Hodel drbrain at segment7.net
Wed Jul 25 14:09:24 EDT 2007

On Jul 25, 2007, at 09:22, Wes Sheldahl wrote:
> On 7/24/07, Chad Woolley <thewoolleyman at gmail.com> wrote:
>> Does anyone have any scripts/guidelines/suggestions for using groups,
>> set-groupID permissions, and/or umasks to avoid needing root  
>> access to
>> install/update gems?  Specifically, how to manage binaries installed
>> in /usr/local/bin?
>> Has anyone even tried this, or does everyone do it via manually via
>> sudo (or automate via NOPASSWD entries in sudoers)?
> I've always just used sudo for installing gems. Does this mean you  
> found a way to have a gem install its binary in /usr/local/bin?  
> I've never been able to control any of the install locations.
> If the gem is going to be used system-wide, it makes sense to  
> restrict that to root. For user-specific gems, it might be nice to  
> be able to install to ~/lib/gems, ~/bin etc.

You can create an alternate RubyGems repository and install gems into  
there using the GEM_HOME environment variable.

Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars

More information about the Rubygems-developers mailing list