I've found what causes the problem.

/usr/bin/bundle doesn't set the umask, and instead uses the umask set by
the user who calls it.

In my case, my umask is 027.

Therefore, all files created by bundle (through sudo) in /var/lib/gems
become unreadable for users other than root, and therefore bundle will
work for root only, unless a  chmod -R a+rX /var/lib/gems  is performed.

Problem doesn't occur if I use a umask of 022 .

So bundle needs to set it's umask properly, i.e. something like 022.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ruby1.9.1 in Ubuntu.
https://bugs.launchpad.net/bugs/1324685

Title:
  gem file access problem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ruby1.9.1/+bug/1324685/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to