Bin files get installed with the sudo users umask

Bug #1023836 reported by Giles Westwood on 2012-07-12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
rubygems (Ubuntu)

Bug Description

installer.rb attempts to install bin files to a standard path with world execute permissions:- bin_script_path, 'wb', 0755 do |file|
      file.print app_script_text(filename)

However this still obeys the users umask so if it's a restrictive umask they won't have a world execute.

Specifically using the file chmod(755) method should set this after the file has been written.

Dan Kegel (dank) wrote :

I think I'm seeing this problem. My symptom is the same as
i.e. /var/lib/gems and /usr/local/bin/$gemname are created 700, so that no one but root can access them.

This is on 12.04.1.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rubygems (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.