# Permission of files installed from rubygems

**URL:** <https://www.ruby-forum.com/t/permission-of-files-installed-from-rubygems/87899>\
**Category:** Ruby\
**Created:** [March 6, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/permission-of-files-installed-from-rubygems/87899 "2007-03-06T18:47:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reflex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f05b48/32.png) [@reflex](https://www.ruby-forum.com/u/reflex)\
**Post date:** [March 6, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/permission-of-files-installed-from-rubygems/87899/1 "2007-03-06T18:47:02Z")

</div>

Hello

I have some system administration libraries that I would like to  
install as a gem on my servers. However, these servers also have local  
users who should not be able to require those libraries from their  
scripts. Is it possible to specify the permissions a file or directory  
will be installed with in the gemspec file?

If not, is it possible to make rubygems search for libraries in more  
than one location, so that I could install it locally for root, in,  
say, /root/gems, but also allow root to load the gems that were  
installed at the standard directory?

Thanks in advance,  
Andre
