Bin files get installed with the sudo users umask

Bug #1023836 reported by Giles Westwood
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
rubygems (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

installer.rb attempts to install bin files to a standard path with world execute permissions:-

    File.open bin_script_path, 'wb', 0755 do |file|
      file.print app_script_text(filename)
    end

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.

Revision history for this message
Dan Kegel (dank) wrote :

I think I'm seeing this problem. My symptom is the same as
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514126
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.

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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