Bin files get installed with the sudo users umask
Bug #1023836 reported by
Giles Westwood
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_
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.
To post a comment you must log in.
I think I'm seeing this problem. My symptom is the same as bugs.debian. org/cgi- bin/bugreport. cgi?bug= 514126 bin/$gemname are created 700, so that no one but root can access them.
http://
i.e. /var/lib/gems and /usr/local/
This is on 12.04.1.