wayneeseguin/rvm — Issue #658: wrong file permissions on system wide install
Author: sunteya
Created: 2011-12-25 06:00:08+00:00
State: open

I use root install rvm 1.10.0 on ubuntu server 11.10.
and use follow steps.

```
./rvm-installer --version latest
```

exit ssh and relogin it (auto source /etc/profile.d/rvm.sh), and install ruby 1.9.2

```
rvm install 1.9.2
rvm 1.9.2 --default
gem install thor
```

however, permission is

```
root@ubuntu1110:~# ls -l /usr/local/rvm/rubies/ruby-1.9.2-p290/
total 24
drwxr-xr-x 2 root root 4096 2011-12-25 13:32 bin
-rw-rw-r-- 1 root root 6156 2011-12-25 13:33 config
drwxr-xr-x 3 root root 4096 2011-12-25 13:32 include
drwxr-xr-x 3 root root 4096 2011-12-25 13:32 lib
drwxr-xr-x 3 root root 4096 2011-12-25 13:32 share
root@ubuntu1110:~# ls -l /usr/local/rvm/gems/ruby-1.9.2-p290/
total 20
drwxrwsr-x 2 root rvm 4096 2011-12-25 13:36 bin
drwxr-sr-x 2 root rvm 4096 2011-12-25 13:36 cache
drwxr-sr-x 5 root rvm 4096 2011-12-25 13:36 doc
drwxr-sr-x 5 root rvm 4096 2011-12-25 13:36 gems
drwxrwsr-x 2 root rvm 4096 2011-12-25 13:36 specifications
root@ubuntu1110:~# ls -l /usr/local/rvm/gems/ruby-1.9.2-p290/bin/
total 16
-rwxr-xr-x 1 root rvm 408 2011-12-25 13:32 bundle
-rwxr-xr-x 1 root rvm 397 2011-12-25 13:32 rake
-rwxr-xr-x 1 root rvm 402 2011-12-25 13:36 rake2thor
-rwxr-xr-x 1 root rvm 397 2011-12-25 13:36 thor
root@ubuntu1110:~#
```
corrent file should be mod: g+w, group: rvm.